mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
[KERNEL32] - Fix DuplicateHandle return value
[WIN32CSR] - Fix DPRINT svn path=/trunk/; revision=53071
This commit is contained in:
@@ -197,7 +197,7 @@ DuplicateHandle(IN HANDLE hSourceProcessHandle,
|
||||
dwDesiredAccess,
|
||||
bInheritHandle ? OBJ_INHERIT : 0,
|
||||
dwOptions);
|
||||
if (NT_SUCCESS(Status)) return Status;
|
||||
if (NT_SUCCESS(Status)) return TRUE;
|
||||
|
||||
BaseSetLastNTError(Status);
|
||||
return FALSE;
|
||||
|
||||
@@ -286,7 +286,7 @@ CSR_API(CsrAllocConsole)
|
||||
FALSE,
|
||||
0))
|
||||
{
|
||||
DPRINT1("DuplicateHandle() failed: %d\n", GetLastError);
|
||||
DPRINT1("DuplicateHandle() failed: %lu\n", GetLastError());
|
||||
ConioDeleteConsole((Object_t *) Console);
|
||||
if (NewConsole || !ProcessData->bInheritHandles)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user