mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 01:35:47 +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;
|
GDIOBJHDR * ptr;
|
||||||
DWORD objectType;
|
DWORD objectType;
|
||||||
BOOL Ret = FALSE;
|
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);
|
ptr = GDIOBJ_LockObj(hgdiobj, GDI_OBJECT_TYPE_DONTCARE);
|
||||||
if (ptr == 0)
|
if (ptr == 0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue