mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
[WIN32K]
Fix crashes due to CreateDIBitmap tests svn path=/trunk/; revision=56543
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user