Author: tretiakov
Date: Wed Apr 12 17:22:57 2006
New Revision: 21563
URL:
http://svn.reactos.ru/svn/reactos?rev=21563&view=rev
Log:
Fix BSOD when executing gdi32_winetest bitmap
Modified:
trunk/reactos/subsystems/win32/win32k/objects/dibobj.c
Modified: trunk/reactos/subsystems/win32/win32k/objects/dibobj.c
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/subsystems/win32/win32k/obj…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/dibobj.c (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/dibobj.c Wed Apr 12 17:22:57 2006
@@ -454,6 +454,13 @@
BitmapFormat(Info->bmiHeader.biBitCount,
Info->bmiHeader.biCompression),
0 < Info->bmiHeader.biHeight ? 0 : BMF_TOPDOWN,
Bits);
+
+ if(DestBitmap == NULL)
+ {
+ BITMAPOBJ_UnlockBitmap(BitmapObj);
+ return 0;
+ }
+
DestSurfObj = EngLockSurface((HSURF)DestBitmap);
SourcePalette = PALETTE_LockPalette(hSourcePalette);