Small bug big effects: Use the correct offset when copying the BITMAPINFO, fixes taskbar icons regression.

svn path=/branches/reactos-yarotows/; revision=47709
This commit is contained in:
Timo Kreuzer 2010-06-09 11:22:19 +00:00
parent 8d819d4de1
commit 02588ba9c0

View file

@ -1936,7 +1936,9 @@ GetBMIFromBitmapV5Info(IN PBITMAPV5INFO pbmiSrc,
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))