UnrealizeObject does not SetLastError on a null object.

svn path=/trunk/; revision=21006
This commit is contained in:
James Tabor 2006-01-24 05:03:00 +00:00
parent 61397ddb80
commit f125cf5904

View file

@ -611,6 +611,10 @@ NtGdiUnrealizeObject(HGDIOBJ hgdiobj)
GDIOBJHDR * ptr;
DWORD objectType;
BOOL Ret = FALSE;
/* From Wine: UnrealizeObject does not SetLastError() on a null object */
if(!hgdiobj)
return Ret;
ptr = GDIOBJ_LockObj(hgdiobj, GDI_OBJECT_TYPE_DONTCARE);
if (ptr == 0)