Commit c2f3c111 authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

comdlg32: Fix a leak.

parent 1a9d9e0f
......@@ -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;
......
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