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

@ -612,6 +612,10 @@ NtGdiUnrealizeObject(HGDIOBJ hgdiobj)
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)
{