gdi32: Close handle in error path (Coverity).
This commit is contained in:
parent
b3f9747b28
commit
1cf9939dc0
|
@ -409,6 +409,7 @@ HDC WINAPI CreateEnhMetaFileW(
|
|||
}
|
||||
if (!WriteFile( hFile, physDev->emh, size, NULL, NULL )) {
|
||||
free_dc_ptr( dc );
|
||||
CloseHandle( hFile );
|
||||
return 0;
|
||||
}
|
||||
physDev->hFile = hFile;
|
||||
|
|
Loading…
Reference in New Issue