Commit bed56ddb authored by Huw D M Davies's avatar Huw D M Davies Committed by Alexandre Julliard

Release gdi lock before calling DeleteDC.

parent 724c7d7a
......@@ -332,12 +332,13 @@ HDC WINAPI CreateEnhMetaFileW(
physDev->hFile = hFile;
}
if( !hdc )
DeleteDC( hRefDC );
TRACE("returning %04x\n", dc->hSelf);
ret = dc->hSelf;
GDI_ReleaseObj( dc->hSelf );
if( !hdc )
DeleteDC( hRefDC );
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