[GDI32]
authorThomas Faber <thomas.faber@reactos.org>
Thu, 27 Apr 2017 08:59:29 +0000 (08:59 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Thu, 27 Apr 2017 08:59:29 +0000 (08:59 +0000)
- 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

svn path=/trunk/; revision=74419

reactos/win32ss/gdi/gdi32/objects/dc.c

index 607001e..8505b77 100644 (file)
@@ -1426,7 +1426,7 @@ GdiSelectPen(
     pdcattr = GdiGetDcAttr(hdc);
     if (pdcattr == NULL)
     {
-        SetLastError(ERROR_INVALID_PARAMETER);
+        SetLastError(ERROR_INVALID_HANDLE);
         return NULL;
     }