mirror of
https://github.com/reactos/reactos.git
synced 2024-10-19 15:41:31 +00:00
[WIN32K]
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:
parent
8d819d4de1
commit
02588ba9c0
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue