[WIN32K]
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Tue, 29 Dec 2015 20:28:23 +0000 (20:28 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Tue, 29 Dec 2015 20:28:23 +0000 (20:28 +0000)
commit89cb03b072475b363a92d354a7f1b5a989578ba3
treea815917d31a6cc7c24390a7b8c931a0acfd50e5e
parent64820cf82f2c847e1e7d4e0373771dbd47194666
[WIN32K]
Properly check the bitmap size in IntSetDIBits, taking into account that it might be set to 0, then we have to calculate it ourselves. Fixes a crash when invalid data is passed to NtGdiCreateDIBitmapInternal.
[GDI32]
Convert COREINFOHEADER to BITMAPINFOHEADER before passing it to NtGdiCreateDIBitmapInternal, which doesn't support it.
CORE-10583 #resolve

svn path=/trunk/; revision=70464
reactos/win32ss/gdi/gdi32/objects/bitmap.c
reactos/win32ss/gdi/ntgdi/dibobj.c