Author: tfaber
Date: Sat Mar 26 15:35:21 2016
New Revision: 71056
URL:
http://svn.reactos.org/svn/reactos?rev=71056&view=rev
Log:
[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
Modified:
trunk/reactos/win32ss/user/user32/windows/cursoricon.c
Modified: trunk/reactos/win32ss/user/user32/windows/cursoricon.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/user32/window…
==============================================================================
--- trunk/reactos/win32ss/user/user32/windows/cursoricon.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/user32/windows/cursoricon.c [iso-8859-1] Sat Mar 26
15:35:21 2016
@@ -1298,7 +1298,7 @@
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");