Release gdi lock before calling DeleteDC.

This commit is contained in:
Huw D M Davies 2001-09-14 00:11:16 +00:00 committed by Alexandre Julliard
parent 724c7d7a4f
commit bed56ddbc7
1 changed files with 4 additions and 3 deletions

View File

@ -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;
}