mirror of
https://github.com/reactos/reactos.git
synced 2024-07-08 21:55:08 +00:00
[WIN32K]
Fix crashes due to CreateDIBitmap tests svn path=/trunk/; revision=56543
This commit is contained in:
parent
6743cf9776
commit
b4cf798850
|
@ -407,6 +407,8 @@ IntSetDIBits(
|
|||
EXLATEOBJ exlo;
|
||||
PPALETTE ppalDIB = 0;
|
||||
|
||||
if (!bmi) return 0;
|
||||
|
||||
SourceBitmap = GreCreateBitmapEx(bmi->bmiHeader.biWidth,
|
||||
ScanLines,
|
||||
0,
|
||||
|
@ -1380,6 +1382,7 @@ NtGdiCreateDIBitmapInternal(
|
|||
|
||||
if(pjInit && (fInit == CBM_INIT))
|
||||
{
|
||||
if (cjMaxBits == 0) return NULL;
|
||||
safeBits = ExAllocatePoolWithTag(PagedPool, cjMaxBits, TAG_DIB);
|
||||
if(!safeBits)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue