[WIN32K] Don't trust the BITMAPINFOHEADER size

This is not entirely correct yet, but less wrong than before
CORE-16621
This commit is contained in:
Mark Jansen 2020-01-11 13:15:12 +01:00
parent 42d2d5ec9c
commit 53c9a6deaa
No known key found for this signature in database
GPG key ID: B39240EE84BEAE8B

View file

@ -1288,7 +1288,7 @@ NtGdiStretchDIBitsInternal(
BitmapFormat(pbmi->bmiHeader.biBitCount,
pbmi->bmiHeader.biCompression),
pbmi->bmiHeader.biHeight < 0 ? BMF_TOPDOWN : 0,
pbmi->bmiHeader.biSizeImage,
cjMaxBits,
pvBits,
0);