- Memory DC with no surface selected return true. WIP and part of CORE-12888.

svn path=/trunk/; revision=75251
This commit is contained in:
James Tabor 2017-06-30 23:23:33 +00:00
parent c4b72f20c6
commit 9338a7ec63
2 changed files with 9 additions and 7 deletions

View file

@ -597,7 +597,7 @@ IntRectangle(PDC dc,
psurf = dc->dclevel.pSurface;
if (!psurf)
{
ret = FALSE;
ret = TRUE;
goto cleanup;
}
@ -1085,7 +1085,7 @@ NtGdiExtFloodFill(
if (!dc->dclevel.pSurface)
{
Ret = FALSE;
Ret = TRUE;
goto cleanup;
}

View file

@ -5147,6 +5147,13 @@ GreExtTextOutW(
goto good;
}
if (!dc->dclevel.pSurface)
{
/* Memory DC with no surface selected */
DC_UnlockDc(dc);
return TRUE;
}
if (lprc && (fuOptions & (ETO_OPAQUE | ETO_CLIPPED)))
{
IntLPtoDP(dc, (POINT *)lprc, 2);
@ -5172,11 +5179,6 @@ GreExtTextOutW(
BrushOrigin.x = 0;
BrushOrigin.y = 0;
if (!dc->dclevel.pSurface)
{
goto fail;
}
if ((fuOptions & ETO_OPAQUE) && lprc)
{
DestRect.left = lprc->left;