From: Jérôme Gardou Date: Mon, 19 Apr 2010 21:56:44 +0000 (+0000) Subject: [WIN32K] X-Git-Tag: backups/reactos-yarotows@57446~158 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=202a5fc5c7ba775819b09b651a8b82edd0753390;hp=8188ea39596d03a1c8cde30cf68e27856e2eacda [WIN32K] - Do not access surface before holding ppdev Lock svn path=/branches/reactos-yarotows/; revision=46951 --- diff --git a/subsystems/win32/win32k/objects/bitblt.c b/subsystems/win32/win32k/objects/bitblt.c index e247fd7d9a0..95aadff2ef8 100644 --- a/subsystems/win32/win32k/objects/bitblt.c +++ b/subsystems/win32/win32k/objects/bitblt.c @@ -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(