Hi All,
I am getting a crash inside win32 fn:: SHBrowseForFolder(). The code is as follows:
BROWSEINFO bi = {0};
TCHAR szDisplayName[MAX_PATH];
szDisplayName[0] = ' ';
bi.hwndOwner = NULL;
bi.pidlRoot = NULL;
bi.pszDisplayName = szDisplayName;
bi.lpszTitle = _T("Please select a folder :");
bi.ulFlags = BIF_RETURNONLYFSDIRS;
bi.lParam = NULL;
bi.iImage = 0;
LPITEMIDLIST pidl = SHBrowseForFolder(&bi);//crashes
The crash comes only in some XP machines and doesn't come on vista machines. Kindly suggest some solutions.
Thanks.