Author: tfaber
Date: Thu Aug 4 22:53:57 2011
New Revision: 53071
URL:
http://svn.reactos.org/svn/reactos?rev=53071&view=rev
Log:
[KERNEL32] - Fix DuplicateHandle return value
[WIN32CSR] - Fix DPRINT
Modified:
trunk/reactos/dll/win32/kernel32/client/handle.c
trunk/reactos/subsystems/win32/csrss/win32csr/console.c
Modified: trunk/reactos/dll/win32/kernel32/client/handle.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/client/handle.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/client/handle.c [iso-8859-1] Thu Aug 4 22:53:57
2011
@@ -197,7 +197,7 @@
dwDesiredAccess,
bInheritHandle ? OBJ_INHERIT : 0,
dwOptions);
- if (NT_SUCCESS(Status)) return Status;
+ if (NT_SUCCESS(Status)) return TRUE;
BaseSetLastNTError(Status);
return FALSE;
Modified: trunk/reactos/subsystems/win32/csrss/win32csr/console.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/csrss/win…
==============================================================================
--- trunk/reactos/subsystems/win32/csrss/win32csr/console.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/csrss/win32csr/console.c [iso-8859-1] Thu Aug 4
22:53:57 2011
@@ -286,7 +286,7 @@
FALSE,
0))
{
- DPRINT1("DuplicateHandle() failed: %d\n", GetLastError);
+ DPRINT1("DuplicateHandle() failed: %lu\n", GetLastError());
ConioDeleteConsole((Object_t *) Console);
if (NewConsole || !ProcessData->bInheritHandles)
{