- Do not access surface before holding ppdev Lock

svn path=/branches/reactos-yarotows/; revision=46951
This commit is contained in:
Jérôme Gardou 2010-04-19 21:56:44 +00:00
parent 8188ea3959
commit 202a5fc5c7

View file

@ -942,13 +942,6 @@ IntPatBlt(
ASSERT(pbrush);
psurf = pdc->dclevel.pSurface;
if (psurf == NULL)
{
SetLastWin32Error(ERROR_INVALID_HANDLE);
return FALSE;
}
if (pbrush->flAttrs & GDIBRUSH_IS_NULL)
{
return TRUE;
@ -988,6 +981,8 @@ IntPatBlt(
DC_vPrepareDCsForBlit(pdc, DestRect, NULL, DestRect);
psurf = pdc->dclevel.pSurface;
EBRUSHOBJ_vInit(&eboFill, pbrush, pdc);
ret = IntEngBitBlt(