- Fix api test crash.

svn path=/trunk/; revision=57698
This commit is contained in:
James Tabor
2012-11-11 03:01:58 +00:00
parent c2ad2fb56b
commit 5b39db6a1e
+6
View File
@@ -1154,6 +1154,12 @@ UserDrawIconEx(
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);