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

This commit is contained in:
Alexandre Julliard 2007-09-27 21:00:44 +02:00
parent af6c0a09c5
commit e9f1638de6
1 changed files with 3 additions and 3 deletions

View File

@ -1156,9 +1156,9 @@ HGDIOBJ WINAPI SelectObject( HDC hdc, HGDIOBJ hObj )
header = GDI_GetObjPtr( hObj, MAGIC_DONTCARE ); header = GDI_GetObjPtr( hObj, MAGIC_DONTCARE );
if (header) if (header)
{ {
if (header->funcs && header->funcs->pSelectObject) const struct gdi_obj_funcs *funcs = header->funcs;
ret = header->funcs->pSelectObject( hObj, hdc );
GDI_ReleaseObj( hObj ); GDI_ReleaseObj( hObj );
if (funcs && funcs->pSelectObject) ret = funcs->pSelectObject( hObj, hdc );
} }
} }
return ret; return ret;