gdi32: Don't hold the GDI lock while calling the SelectObject backends.
This commit is contained in:
parent
af6c0a09c5
commit
e9f1638de6
|
@ -1156,9 +1156,9 @@ HGDIOBJ WINAPI SelectObject( HDC hdc, HGDIOBJ hObj )
|
|||
header = GDI_GetObjPtr( hObj, MAGIC_DONTCARE );
|
||||
if (header)
|
||||
{
|
||||
if (header->funcs && header->funcs->pSelectObject)
|
||||
ret = header->funcs->pSelectObject( hObj, hdc );
|
||||
GDI_ReleaseObj( hObj );
|
||||
const struct gdi_obj_funcs *funcs = header->funcs;
|
||||
GDI_ReleaseObj( hObj );
|
||||
if (funcs && funcs->pSelectObject) ret = funcs->pSelectObject( hObj, hdc );
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
|
|
Loading…
Reference in New Issue