mirror of
https://github.com/reactos/reactos.git
synced 2025-08-01 19:33:23 +00:00
[KERNEL32] - Fix DuplicateHandle return value
[WIN32CSR] - Fix DPRINT svn path=/trunk/; revision=53071
This commit is contained in:
parent
b1daf52fc4
commit
4b7e537cf9
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue