From 6ca8f89b8b005478764800662b417e55fa397bad Mon Sep 17 00:00:00 2001 From: =?utf8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Thu, 20 Feb 2014 20:17:53 +0000 Subject: [PATCH 1/1] [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 --- reactos/dll/win32/kernel32/client/console/console.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.17.1