mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 20:23:34 +00:00
Handle failure of EngLockSurface as well
svn path=/trunk/; revision=42745
This commit is contained in:
parent
ac35e87724
commit
c365f1c1bb
1 changed files with 8 additions and 3 deletions
|
@ -76,6 +76,11 @@ IntEngEnter(PINTENG_ENTER_LEAVE EnterLeave,
|
||||||
}
|
}
|
||||||
|
|
||||||
*ppsoOutput = EngLockSurface((HSURF)EnterLeave->OutputBitmap);
|
*ppsoOutput = EngLockSurface((HSURF)EnterLeave->OutputBitmap);
|
||||||
|
if (*ppsoOutput == NULL)
|
||||||
|
{
|
||||||
|
EngDeleteSurface((HSURF)EnterLeave->OutputBitmap);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
EnterLeave->DestRect.left = 0;
|
EnterLeave->DestRect.left = 0;
|
||||||
EnterLeave->DestRect.top = 0;
|
EnterLeave->DestRect.top = 0;
|
||||||
|
@ -105,9 +110,9 @@ IntEngEnter(PINTENG_ENTER_LEAVE EnterLeave,
|
||||||
EnterLeave->TrivialClipObj = EngCreateClip();
|
EnterLeave->TrivialClipObj = EngCreateClip();
|
||||||
if (EnterLeave->TrivialClipObj == NULL)
|
if (EnterLeave->TrivialClipObj == NULL)
|
||||||
{
|
{
|
||||||
EngUnlockSurface(*ppsoOutput);
|
EngUnlockSurface(*ppsoOutput);
|
||||||
EngDeleteSurface((HSURF)EnterLeave->OutputBitmap);
|
EngDeleteSurface((HSURF)EnterLeave->OutputBitmap);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
EnterLeave->TrivialClipObj->iDComplexity = DC_TRIVIAL;
|
EnterLeave->TrivialClipObj->iDComplexity = DC_TRIVIAL;
|
||||||
if (ClippedDestRect.left < (*ppsoOutput)->sizlBitmap.cx &&
|
if (ClippedDestRect.left < (*ppsoOutput)->sizlBitmap.cx &&
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue