Author: jimtabor
Date: Sat Nov 15 09:20:14 2008
New Revision: 37375
URL:
http://svn.reactos.org/svn/reactos?rev=37375&view=rev
Log:
- Fix newest Wine bitmap gdi32 crosstest.
Modified:
trunk/reactos/dll/win32/gdi32/objects/utils.c
Modified: trunk/reactos/dll/win32/gdi32/objects/utils.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/objects/ut…
==============================================================================
--- trunk/reactos/dll/win32/gdi32/objects/utils.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/gdi32/objects/utils.c [iso-8859-1] Sat Nov 15 09:20:14 2008
@@ -188,9 +188,10 @@
* description).
*/
- if (BitmapInfo->bmiHeader.biSize != sizeof(BITMAPCOREHEADER) &&
+ if ( !BitmapInfo ||
+ (BitmapInfo->bmiHeader.biSize != sizeof(BITMAPCOREHEADER) &&
(BitmapInfo->bmiHeader.biSize < sizeof(BITMAPINFOHEADER) ||
- BitmapInfo->bmiHeader.biSize > sizeof(BITMAPV5HEADER)))
+ BitmapInfo->bmiHeader.biSize > sizeof(BITMAPV5HEADER))))
{
return NULL;
}