comdlg32: Save dialog works if fred\ entered as filename.
This commit is contained in:
parent
47c847663e
commit
8707021aae
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue