mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-31 19:26:42 +00:00
UnrealizeObject does not SetLastError on a null object.
svn path=/trunk/; revision=21006
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user