UnrealizeObject does not SetLastError on a null object.
Modified: trunk/reactos/subsys/win32k/objects/color.c
_____
Modified: trunk/reactos/subsys/win32k/objects/color.c
--- trunk/reactos/subsys/win32k/objects/color.c 2006-01-23 19:39:20 UTC
(rev 21005)
+++ trunk/reactos/subsys/win32k/objects/color.c 2006-01-24 05:03:00 UTC
(rev 21006)
@@ -611,6 +611,10 @@
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)