msvfw32: Fix a leak (coverity).
This commit is contained in:
parent
6be32ec80c
commit
86544ce98f
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user