mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 18:51:37 +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);
|
||||
if (*ppsoOutput == NULL)
|
||||
{
|
||||
EngDeleteSurface((HSURF)EnterLeave->OutputBitmap);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
EnterLeave->DestRect.left = 0;
|
||||
EnterLeave->DestRect.top = 0;
|
||||
|
@ -105,9 +110,9 @@ IntEngEnter(PINTENG_ENTER_LEAVE EnterLeave,
|
|||
EnterLeave->TrivialClipObj = EngCreateClip();
|
||||
if (EnterLeave->TrivialClipObj == NULL)
|
||||
{
|
||||
EngUnlockSurface(*ppsoOutput);
|
||||
EngDeleteSurface((HSURF)EnterLeave->OutputBitmap);
|
||||
return FALSE;
|
||||
EngUnlockSurface(*ppsoOutput);
|
||||
EngDeleteSurface((HSURF)EnterLeave->OutputBitmap);
|
||||
return FALSE;
|
||||
}
|
||||
EnterLeave->TrivialClipObj->iDComplexity = DC_TRIVIAL;
|
||||
if (ClippedDestRect.left < (*ppsoOutput)->sizlBitmap.cx &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue