mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
UnrealizeObject does not SetLastError on a null object.
svn path=/trunk/; revision=21006
This commit is contained in:
parent
61397ddb80
commit
f125cf5904
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue