Fixed: Warnings with VC++ 2017

--HG--
branch : develop
hg/compatibility-develop
kervala 7 years ago
parent cba3e90f32
commit 2502e10592

@ -3897,7 +3897,7 @@ bool browseFolder(const CString &caption, CString &destFolder, HWND parent)
bi.lpfn = NULL;
bi.lParam = NULL;
bi.iImage = 0;
LPITEMIDLIST result = SHBrowseForFolder(&bi);
PIDLIST_ABSOLUTE result = SHBrowseForFolder(&bi);
if (result != NULL && SHGetPathFromIDList(result, chosenPath))
{
destFolder = chosenPath;

@ -91,7 +91,7 @@ ULONG CNelExport::SelectDir(HWND Parent, TCHAR* Title, std::string &Path)
bi.lParam=0;
bi.iImage=0;
ITEMIDLIST* pidl = SHBrowseForFolder(&bi);
PIDLIST_ABSOLUTE pidl = SHBrowseForFolder(&bi);
if (!SHGetPathFromIDList(pidl,str) )
{

@ -517,8 +517,8 @@ void SelectionTerritoire::OnPath()
info.ulFlags=BIF_RETURNONLYFSDIRS;
// Select the path
LPITEMIDLIST list;
if (list=SHBrowseForFolder (&info))
PIDLIST_ABSOLUTE list = SHBrowseForFolder(&info);
if (list)
{
// Convert item into path string
BOOL bRet=SHGetPathFromIDList(list, path);

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

Loading…
Cancel
Save