Author: tkreuzer
Date: Wed Jun 9 11:22:19 2010
New Revision: 47709
URL:
http://svn.reactos.org/svn/reactos?rev=47709&view=rev
Log:
[WIN32K]
Small bug big effects: Use the correct offset when copying the BITMAPINFO, fixes taskbar
icons regression.
Modified:
branches/reactos-yarotows/subsystems/win32/win32k/objects/dibobj.c
Modified: branches/reactos-yarotows/subsystems/win32/win32k/objects/dibobj.c
URL:
http://svn.reactos.org/svn/reactos/branches/reactos-yarotows/subsystems/win…
==============================================================================
--- branches/reactos-yarotows/subsystems/win32/win32k/objects/dibobj.c [iso-8859-1]
(original)
+++ branches/reactos-yarotows/subsystems/win32/win32k/objects/dibobj.c [iso-8859-1] Wed
Jun 9 11:22:19 2010
@@ -1936,7 +1936,9 @@
else
{
/* Copy valid Fields, keep bmiHeader.biSize safe */
- RtlCopyMemory((PBYTE)pbmiDst + sizeof(DWORD), pbmiSrc,
pbmiDst->bmiHeader.biSize - sizeof(DWORD));
+ RtlCopyMemory(&pbmiDst->bmiHeader.biWidth,
+ &pbmiSrc->bmiHeader.bV5Width,
+ pbmiDst->bmiHeader.biSize - sizeof(DWORD));
}
if((pbmiDst->bmiHeader.biSize < sizeof(BITMAPV4HEADER)) &&
(pbmiSrc->bmiHeader.bV5Compression == BI_BITFIELDS))