GetCurrentObject does not SetLastError() on a null object.

svn path=/trunk/; revision=21010
This commit is contained in:
James Tabor
2006-01-24 06:02:32 +00:00
parent 035f762b73
commit 9aa40d6a75
+3
View File
@@ -1173,6 +1173,9 @@ NtGdiGetCurrentObject(HDC hDC, UINT ObjectType)
HGDIOBJ SelObject;
DC *dc;
/* From Wine: GetCurrentObject does not SetLastError() on a null object */
if(!hDC) return NULL;
if(!(dc = DC_LockDc(hDC)))
{
SetLastWin32Error(ERROR_INVALID_HANDLE);