comdlg32: Fix a leak.
This commit is contained in:
parent
1a9d9e0f76
commit
c2f3c1114f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue