[KERNEL32] - Fix DuplicateHandle return value

[WIN32CSR] - Fix DPRINT

svn path=/trunk/; revision=53071
This commit is contained in:
Thomas Faber 2011-08-04 22:53:57 +00:00
parent b1daf52fc4
commit 4b7e537cf9
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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)
{