comdlg32: Save dialog works if fred\ entered as filename.

This commit is contained in:
Jason Edmeades 2007-07-28 20:34:49 +01:00 committed by Alexandre Julliard
parent 47c847663e
commit 8707021aae
1 changed files with 2 additions and 1 deletions

View File

@ -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)
{