https://git.reactos.org/?p=reactos.git;a=commitdiff;h=53c9a6deaa61091f5bf68…
commit 53c9a6deaa61091f5bf681483cd3f36cc388c51b
Author: Mark Jansen <mark.jansen(a)reactos.org>
AuthorDate: Sat Jan 11 13:15:12 2020 +0100
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Sun Jan 26 13:08:53 2020 +0100
[WIN32K] Don't trust the BITMAPINFOHEADER size
This is not entirely correct yet, but less wrong than before
CORE-16621
---
win32ss/gdi/ntgdi/dibobj.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/win32ss/gdi/ntgdi/dibobj.c b/win32ss/gdi/ntgdi/dibobj.c
index f935bc5d543..93208665b39 100644
--- a/win32ss/gdi/ntgdi/dibobj.c
+++ b/win32ss/gdi/ntgdi/dibobj.c
@@ -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);