Commit e9f1638d authored by Alexandre Julliard's avatar Alexandre Julliard

gdi32: Don't hold the GDI lock while calling the SelectObject backends.

parent af6c0a09
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment