Author: jimtabor
Date: Sun Nov 11 03:01:58 2012
New Revision: 57698
URL:
http://svn.reactos.org/svn/reactos?rev=57698&view=rev
Log:
[Win32k]
- Fix api test crash.
Modified:
trunk/reactos/win32ss/user/ntuser/cursoricon.c
Modified: trunk/reactos/win32ss/user/ntuser/cursoricon.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/cursor…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/cursoricon.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/cursoricon.c [iso-8859-1] Sun Nov 11 03:01:58 2012
@@ -1154,6 +1154,12 @@
return FALSE;
}
+ if (!psurfColor)
+ {
+ ERR("Attention HAX FIX API DrawIconEx TEST Line 37: psurfColor is NULL
going with Mask!\n");
+ psurfColor = SURFACE_ShareLockSurface(hbmMask);
+ }
+
psurfOffScreen = SURFACE_AllocSurface(STYPE_BITMAP,
cxWidth, cyHeight, psurfColor->SurfObj.iBitmapFormat,
0, 0, NULL);