From aa172ad912d65491de5c15b890a0a349a2733e8e Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Sat, 26 Mar 2016 15:35:21 +0000 Subject: [PATCH] [USER32] - 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/win32ss/user/user32/windows/cursoricon.c b/reactos/win32ss/user/user32/windows/cursoricon.c index e266ee087f3..e14c401d3e6 100644 --- a/reactos/win32ss/user/user32/windows/cursoricon.c +++ b/reactos/win32ss/user/user32/windows/cursoricon.c @@ -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");