mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 12:23:25 +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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user