Small bug big effects: Use the correct offset when copying the BITMAPINFO, fixes taskbar icons regression.
svn path=/branches/reactos-yarotows/; revision=47709
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))