msvfw32: Fix a leak (coverity).

This commit is contained in:
Frédéric Delanoy 2012-11-02 23:49:29 +01:00 committed by Alexandre Julliard
parent 6be32ec80c
commit 86544ce98f

View file

@ -1512,7 +1512,10 @@ static BOOL GetFileNamePreview(LPVOID lpofn,BOOL bSave,BOOL bUnicode)
fnGetFileName = (LPVOID)GetProcAddress(hComdlg32, szFunctionName); fnGetFileName = (LPVOID)GetProcAddress(hComdlg32, szFunctionName);
if (fnGetFileName == NULL) if (fnGetFileName == NULL)
{
FreeLibrary(hComdlg32);
return FALSE; return FALSE;
}
/* FIXME: need to add OFN_ENABLEHOOK and our own handler */ /* FIXME: need to add OFN_ENABLEHOOK and our own handler */
ret = fnGetFileName(lpofn); ret = fnGetFileName(lpofn);