From 8707021aaed095b50ba79f05e0494684ecb7c807 Mon Sep 17 00:00:00 2001 From: Jason Edmeades Date: Sat, 28 Jul 2007 20:34:49 +0100 Subject: [PATCH] comdlg32: Save dialog works if fred\ entered as filename. --- dlls/comdlg32/filedlg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/comdlg32/filedlg.c b/dlls/comdlg32/filedlg.c index e8e82f2c0c1..ca058f24102 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) { -- 2.11.4.GIT