gdi32: Close handle in mfdrv (Coverity).

This commit is contained in:
Marcus Meissner 2013-06-22 17:28:27 +02:00 committed by Alexandre Julliard
parent 1cf9939dc0
commit ff1bd6da35
1 changed files with 1 additions and 0 deletions

View File

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