Module: wine Branch: master Commit: 8707021aaed095b50ba79f05e0494684ecb7c807 URL: http://source.winehq.org/git/wine.git/?a=commit;h=8707021aaed095b50ba79f05e0...
Author: Jason Edmeades jason.edmeades@googlemail.com Date: Sat Jul 28 20:34:49 2007 +0100
comdlg32: Save dialog works if fred\ entered as filename.
---
dlls/comdlg32/filedlg.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/comdlg32/filedlg.c b/dlls/comdlg32/filedlg.c index e8e82f2..ca058f2 100644 --- a/dlls/comdlg32/filedlg.c +++ b/dlls/comdlg32/filedlg.c @@ -1958,7 +1958,8 @@ BOOL FILEDLG95_OnOpen(HWND hwnd) } else if (!(fodInfos->ofnInfos->Flags & OFN_NOVALIDATE)) { - if(*lpszTemp) /* points to trailing null for last path element */ + if(*lpszTemp || /* points to trailing null for last path element */ + (lpwstrTemp[strlenW(lpwstrTemp)-1] == '\')) /* or if last element ends in '' */ { if(fodInfos->ofnInfos->Flags & OFN_PATHMUSTEXIST) {