ENH: do not force users to create paths

This commit is contained in:
Bill Hoffman 2006-01-24 22:20:56 -05:00
parent e2e08e4b96
commit 538d6e82d8

View File

@ -248,18 +248,15 @@ int CPathDialog::MakeSurePathExists(LPCTSTR lpPath)
} }
strMsg.Format(c_FolderDoesNotExist, lpPath); strMsg.Format(c_FolderDoesNotExist, lpPath);
if(AfxMessageBox(strMsg, MB_YESNO|MB_ICONQUESTION) != IDYES) if(AfxMessageBox(strMsg, MB_YESNO|MB_ICONQUESTION) == IDYES)
{ {
return (int)-1;
}
//create path //create path
iRet=Touch(lpPath, FALSE); iRet=Touch(lpPath, FALSE);
if(iRet!=0) if(iRet!=0)
{ {
throw iRet; throw iRet;
} }
}
return 0; return 0;
} }
catch(int nErrCode) catch(int nErrCode)