Release GDI lock before calling DeleteDC from RestoreDC.

This commit is contained in:
Alexandre Julliard 2001-08-16 19:01:23 +00:00
parent 3954117ce4
commit 717433854e
1 changed files with 2 additions and 0 deletions

View File

@ -524,7 +524,9 @@ BOOL WINAPI RestoreDC( HDC hdc, INT level )
success=FALSE;
}
GDI_ReleaseObj( hdcs );
GDI_ReleaseObj( hdc );
DeleteDC( hdcs );
if (!(dc = DC_GetDCPtr( hdc ))) return FALSE;
}
GDI_ReleaseObj( hdc );
return success;