|
|
@ -208,7 +208,6 @@ int CDirDialog::DoBrowse()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
BROWSEINFO bInfo;
|
|
|
|
BROWSEINFO bInfo;
|
|
|
|
LPITEMIDLIST pidl;
|
|
|
|
|
|
|
|
ZeroMemory((PVOID)&bInfo, sizeof(BROWSEINFO));
|
|
|
|
ZeroMemory((PVOID)&bInfo, sizeof(BROWSEINFO));
|
|
|
|
|
|
|
|
|
|
|
|
if (!m_strInitDir.IsEmpty())
|
|
|
|
if (!m_strInitDir.IsEmpty())
|
|
|
@ -258,10 +257,8 @@ int CDirDialog::DoBrowse()
|
|
|
|
bInfo.lpszTitle = (m_strTitle.IsEmpty()) ? "Open" : m_strTitle;
|
|
|
|
bInfo.lpszTitle = (m_strTitle.IsEmpty()) ? "Open" : m_strTitle;
|
|
|
|
bInfo.ulFlags = BIF_RETURNFSANCESTORS | BIF_RETURNONLYFSDIRS;
|
|
|
|
bInfo.ulFlags = BIF_RETURNFSANCESTORS | BIF_RETURNONLYFSDIRS;
|
|
|
|
|
|
|
|
|
|
|
|
if ((pidl = ::SHBrowseForFolder(&bInfo)) == NULL)
|
|
|
|
PIDLIST_ABSOLUTE pidl = ::SHBrowseForFolder(&bInfo);
|
|
|
|
{
|
|
|
|
if (!pidl) return 0;
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
m_strPath.ReleaseBuffer();
|
|
|
|
m_strPath.ReleaseBuffer();
|
|
|
|
m_iImageIndex = bInfo.iImage;
|
|
|
|
m_iImageIndex = bInfo.iImage;
|
|
|
|