comdlg32: Fix a leak.

This commit is contained in:
Ken Thomases 2011-12-19 21:59:39 -06:00 committed by Alexandre Julliard
parent 1a9d9e0f76
commit c2f3c1114f
1 changed files with 1 additions and 2 deletions

View File

@ -1529,8 +1529,7 @@ static LRESULT FILEDLG95_InitControls(HWND hwnd)
lstrcpyW(fodInfos->filename,nameBit);
*nameBit = 0x00;
if (fodInfos->initdir == NULL)
MemFree(fodInfos->initdir);
MemFree(fodInfos->initdir);
fodInfos->initdir = MemAlloc((lstrlenW(tmpBuf) + 1)*sizeof(WCHAR));
lstrcpyW(fodInfos->initdir, tmpBuf);
handledPath = TRUE;