Author: tfaber
Date: Thu Apr 27 08:59:29 2017
New Revision: 74419
URL:
http://svn.reactos.org/svn/reactos?rev=74419&view=rev
Log:
[GDI32]
- Fix last error value returned from GdiSelectPen for invalid DCs. Fixes the last test
failure in gdi32:gdiobj. Patch by Katayama Hirofumi MZ.
CORE-13132 #resolve
Modified:
trunk/reactos/win32ss/gdi/gdi32/objects/dc.c
Modified: trunk/reactos/win32ss/gdi/gdi32/objects/dc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/gdi32/objects/…
==============================================================================
--- trunk/reactos/win32ss/gdi/gdi32/objects/dc.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/gdi/gdi32/objects/dc.c [iso-8859-1] Thu Apr 27 08:59:29 2017
@@ -1426,7 +1426,7 @@
pdcattr = GdiGetDcAttr(hdc);
if (pdcattr == NULL)
{
- SetLastError(ERROR_INVALID_PARAMETER);
+ SetLastError(ERROR_INVALID_HANDLE);
return NULL;
}