comdlg32: Return the correct path length for CDM_GETFOLDERPATH.
This commit is contained in:
parent
e848a6f6e4
commit
e997909ba7
|
@ -910,7 +910,7 @@ static INT_PTR FILEDLG95_HandleCustomDialogMessages(HWND hwnd, UINT uMsg, WPARAM
|
||||||
WideCharToMultiByte(CP_ACP, 0, lpstrPath, -1,
|
WideCharToMultiByte(CP_ACP, 0, lpstrPath, -1,
|
||||||
(LPSTR)lParam, (int)wParam, NULL, NULL);
|
(LPSTR)lParam, (int)wParam, NULL, NULL);
|
||||||
}
|
}
|
||||||
retval = lstrlenW(lpstrPath);
|
retval = lstrlenW(lpstrPath) + 1;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case CDM_GETFOLDERIDLIST:
|
case CDM_GETFOLDERIDLIST:
|
||||||
|
|
Loading…
Reference in New Issue