[USER32]
authorThomas Faber <thomas.faber@reactos.org>
Sat, 26 Mar 2016 15:35:21 +0000 (15:35 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Sat, 26 Mar 2016 15:35:21 +0000 (15:35 +0000)
- Use the correct, previously calculated width and height in BITMAP_LoadImageW instead of assuming pbmi is an actual BITMAPINFO. Fixes loading bitmaps using BITMAPCOREINFO format. Patch by Mark Jansen.
CORE-10889

svn path=/trunk/; revision=71056

reactos/win32ss/user/user32/windows/cursoricon.c

index e266ee0..e14c401 100644 (file)
@@ -1298,7 +1298,7 @@ create_bitmap:
     if(!hbmpOld)
         goto end;
     if(!StretchDIBits(hdc, 0, 0, cxDesired, cyDesired,
-                           0, 0, pbmi->bmiHeader.biWidth, pbmi->bmiHeader.biHeight,
+                           0, 0, width, height,
                            pvBits, pbmiCopy, DIB_RGB_COLORS, SRCCOPY))
     {
         ERR("StretchDIBits failed!.\n");