comdlg32: Return the correct path length for CDM_GETFOLDERPATH.

This commit is contained in:
Paul Vriens 2009-09-16 11:51:36 +02:00 committed by Alexandre Julliard
parent e848a6f6e4
commit e997909ba7
1 changed files with 1 additions and 1 deletions

View File

@ -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: