Commit ff1bd6da authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

gdi32: Close handle in mfdrv (Coverity).

parent 1cf9939d
......@@ -338,6 +338,7 @@ HDC WINAPI CreateMetaFileW( LPCWSTR filename )
if (!WriteFile( hFile, physDev->mh, sizeof(*physDev->mh), 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