gdi32: Close handle in error path (Coverity).

oldstable
Marcus Meissner 2013-06-22 17:21:39 +02:00 committed by Alexandre Julliard
parent b3f9747b28
commit 1cf9939dc0
1 changed files with 1 additions and 0 deletions

View File

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