Paul Vriens : comdlg32: Return the correct path length for CDM_GETFOLDERPATH.
Alexandre Julliard
julliard at winehq.org
Wed Sep 16 15:59:40 CDT 2009
Module: wine
Branch: master
Commit: e997909ba7796c169fc79f91efdddc461f688ca4
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e997909ba7796c169fc79f91efdddc461f688ca4
Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date: Wed Sep 16 11:51:36 2009 +0200
comdlg32: Return the correct path length for CDM_GETFOLDERPATH.
---
dlls/comdlg32/filedlg.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/comdlg32/filedlg.c b/dlls/comdlg32/filedlg.c
index 4986122..a28c457 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:
More information about the wine-cvs
mailing list