FIX: If current selection was "NOTFOUND", then selecting the browser

would crash since a "/" could not be found in the current selection.
This commit is contained in:
Jim Miller 2002-05-01 22:03:23 -04:00
parent 099436db26
commit 386f4391b2
1 changed files with 4 additions and 0 deletions

View File

@ -433,6 +433,10 @@ void CPropertyList::OnButton()
Filter);
CString initialDir;
CString currPath = pItem->m_curValue;
if (currPath == "NOTFOUND")
{
currPath = "";
}
if (currPath.GetLength() > 0)
{
int endSlash = currPath.ReverseFind('\\');