Commit 71743385 authored by Alexandre Julliard's avatar Alexandre Julliard

Release GDI lock before calling DeleteDC from RestoreDC.

parent 3954117c
......@@ -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;
......
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