mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 00:05:44 +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,
|
dwDesiredAccess,
|
||||||
bInheritHandle ? OBJ_INHERIT : 0,
|
bInheritHandle ? OBJ_INHERIT : 0,
|
||||||
dwOptions);
|
dwOptions);
|
||||||
if (NT_SUCCESS(Status)) return Status;
|
if (NT_SUCCESS(Status)) return TRUE;
|
||||||
|
|
||||||
BaseSetLastNTError(Status);
|
BaseSetLastNTError(Status);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
|
@ -286,7 +286,7 @@ CSR_API(CsrAllocConsole)
|
||||||
FALSE,
|
FALSE,
|
||||||
0))
|
0))
|
||||||
{
|
{
|
||||||
DPRINT1("DuplicateHandle() failed: %d\n", GetLastError);
|
DPRINT1("DuplicateHandle() failed: %lu\n", GetLastError());
|
||||||
ConioDeleteConsole((Object_t *) Console);
|
ConioDeleteConsole((Object_t *) Console);
|
||||||
if (NewConsole || !ProcessData->bInheritHandles)
|
if (NewConsole || !ProcessData->bInheritHandles)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue