Commit 86544ce9 authored by Frédéric Delanoy's avatar Frédéric Delanoy Committed by Alexandre Julliard

msvfw32: Fix a leak (coverity).

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