From ff1bd6da35760cca1a23803bc7469f846f911a98 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sat, 22 Jun 2013 17:28:27 +0200 Subject: [PATCH] gdi32: Close handle in mfdrv (Coverity). --- dlls/gdi32/mfdrv/init.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/gdi32/mfdrv/init.c b/dlls/gdi32/mfdrv/init.c index 03cd22ce003..8f312a1a2ce 100644 --- a/dlls/gdi32/mfdrv/init.c +++ b/dlls/gdi32/mfdrv/init.c @@ -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;