From 09c76ffbdcb802e1823cbb78aa982947ba41f970 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 11 Sep 2007 17:24:55 -0700 Subject: [PATCH] gdi32: Don't hold the GDI lock when setting the pixel format. --- dlls/gdi32/painting.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/gdi32/painting.c b/dlls/gdi32/painting.c index 473f6284732..22912ccf85b 100644 --- a/dlls/gdi32/painting.c +++ b/dlls/gdi32/painting.c @@ -351,7 +351,7 @@ BOOL WINAPI SetPixelFormat( HDC hdc, INT iPixelFormat, const PIXELFORMATDESCRIPTOR *ppfd) { INT bRet = FALSE; - DC * dc = DC_GetDCPtr( hdc ); + DC * dc = get_dc_ptr( hdc ); TRACE("(%p,%d,%p)\n",hdc,iPixelFormat,ppfd); @@ -360,7 +360,7 @@ BOOL WINAPI SetPixelFormat( HDC hdc, INT iPixelFormat, if (!dc->funcs->pSetPixelFormat) FIXME(" :stub\n"); else bRet = dc->funcs->pSetPixelFormat(dc->physDev,iPixelFormat,ppfd); - DC_ReleaseDCPtr( dc ); + release_dc_ptr( dc ); return bRet; }