[ros-diffs] [tkreuzer] 47709: [WIN32K] Small bug big effects: Use the correct offset when copying the BITMAPINFO, fixes taskbar icons regression.
tkreuzer at svn.reactos.org
tkreuzer at svn.reactos.org
Wed Jun 9 12:22:21 CET 2010
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/win32/win32k/objects/dibobj.c?rev=47709&r1=47708&r2=47709&view=diff
==============================================================================
--- 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))
More information about the Ros-diffs
mailing list