From e997909ba7796c169fc79f91efdddc461f688ca4 Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Wed, 16 Sep 2009 11:51:36 +0200 Subject: [PATCH] comdlg32: Return the correct path length for CDM_GETFOLDERPATH. --- dlls/comdlg32/filedlg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/comdlg32/filedlg.c b/dlls/comdlg32/filedlg.c index 4986122a8e4..a28c4574e9f 100644 --- a/dlls/comdlg32/filedlg.c +++ b/dlls/comdlg32/filedlg.c @@ -910,7 +910,7 @@ static INT_PTR FILEDLG95_HandleCustomDialogMessages(HWND hwnd, UINT uMsg, WPARAM WideCharToMultiByte(CP_ACP, 0, lpstrPath, -1, (LPSTR)lParam, (int)wParam, NULL, NULL); } - retval = lstrlenW(lpstrPath); + retval = lstrlenW(lpstrPath) + 1; break; case CDM_GETFOLDERIDLIST: