Author: jgardou Date: Mon Apr 19 23:56:44 2010 New Revision: 46951
URL: http://svn.reactos.org/svn/reactos?rev=46951&view=rev Log: [WIN32K] - Do not access surface before holding ppdev Lock
Modified: branches/reactos-yarotows/subsystems/win32/win32k/objects/bitblt.c
Modified: branches/reactos-yarotows/subsystems/win32/win32k/objects/bitblt.c URL: http://svn.reactos.org/svn/reactos/branches/reactos-yarotows/subsystems/win3... ============================================================================== --- branches/reactos-yarotows/subsystems/win32/win32k/objects/bitblt.c [iso-8859-1] (original) +++ branches/reactos-yarotows/subsystems/win32/win32k/objects/bitblt.c [iso-8859-1] Mon Apr 19 23:56:44 2010 @@ -942,13 +942,6 @@
ASSERT(pbrush);
- psurf = pdc->dclevel.pSurface; - if (psurf == NULL) - { - SetLastWin32Error(ERROR_INVALID_HANDLE); - return FALSE; - } - if (pbrush->flAttrs & GDIBRUSH_IS_NULL) { return TRUE; @@ -987,6 +980,8 @@ BrushOrigin.y = pbrush->ptOrigin.y + pdc->ptlDCOrig.y;
DC_vPrepareDCsForBlit(pdc, DestRect, NULL, DestRect); + + psurf = pdc->dclevel.pSurface;
EBRUSHOBJ_vInit(&eboFill, pbrush, pdc);