Release gdi lock before calling DeleteDC.
This commit is contained in:
parent
724c7d7a4f
commit
bed56ddbc7
|
@ -332,12 +332,13 @@ HDC WINAPI CreateEnhMetaFileW(
|
||||||
physDev->hFile = hFile;
|
physDev->hFile = hFile;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( !hdc )
|
|
||||||
DeleteDC( hRefDC );
|
|
||||||
|
|
||||||
TRACE("returning %04x\n", dc->hSelf);
|
TRACE("returning %04x\n", dc->hSelf);
|
||||||
ret = dc->hSelf;
|
ret = dc->hSelf;
|
||||||
GDI_ReleaseObj( dc->hSelf );
|
GDI_ReleaseObj( dc->hSelf );
|
||||||
|
|
||||||
|
if( !hdc )
|
||||||
|
DeleteDC( hRefDC );
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue