Commit 8707021a authored by Jason Edmeades's avatar Jason Edmeades Committed by Alexandre Julliard

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

parent 47c84766
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment