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