Commit 1cf9939d authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

gdi32: Close handle in error path (Coverity).

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