From: Hermès Bélusca-Maïto Date: Thu, 20 Feb 2014 20:17:53 +0000 (+0000) Subject: [KERNEL32] X-Git-Tag: ReactOS-0.3.16-CLT2014~80 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=6ca8f89b8b005478764800662b417e55fa397bad;hp=76d29a732a58d7d4b71e820740cef199b0624b33 [KERNEL32] Revert r62264. Reason: all APIs set the last error when a CSR* call doesn't return STATUS_SUCCESS. If some winetests fail because of this, this is because we do not correctly do what's needed here (normally the TRUE or FALSE value is returned by the console server, and is not retrieved by a success or failure of a CSR call contrary to what's done here). svn path=/trunk/; revision=62267 --- diff --git a/reactos/dll/win32/kernel32/client/console/console.c b/reactos/dll/win32/kernel32/client/console/console.c index 47ab188f5fb..12d820cf18a 100644 --- a/reactos/dll/win32/kernel32/client/console/console.c +++ b/reactos/dll/win32/kernel32/client/console/console.c @@ -796,6 +796,7 @@ VerifyConsoleIoHandle(HANDLE Handle) sizeof(CONSOLE_VERIFYHANDLE)); if (!NT_SUCCESS(Status)) { + BaseSetLastNTError(Status); return FALSE; }