mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
msvfw32: Fix a leak (coverity).
This commit is contained in:
parent
6be32ec80c
commit
86544ce98f
1 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue