Set the header size as expected instead of setting the bitmap width
authorGregor Schneider <grschneider@gmail.com>
Wed, 28 Jan 2009 15:43:02 +0000 (15:43 +0000)
committerGregor Schneider <grschneider@gmail.com>
Wed, 28 Jan 2009 15:43:02 +0000 (15:43 +0000)
svn path=/trunk/; revision=39180

reactos/subsystems/win32/win32k/objects/bitmaps.c

index 50c2f22..0c3988a 100644 (file)
@@ -834,7 +834,7 @@ BITMAP_GetObject(SURFACE *psurf, INT Count, LPVOID buffer)
             /* Fill rest of DIBSECTION */
             PDIBSECTION pds = buffer;
 
-            pds->dsBmih.biSize = 
+            pds->dsBmih.biSize = sizeof(BITMAPINFOHEADER);
             pds->dsBmih.biWidth = pds->dsBm.bmWidth;
             pds->dsBmih.biHeight = pds->dsBm.bmHeight;
             pds->dsBmih.biPlanes = pds->dsBm.bmPlanes;