Merge pull request #3676 from Kingcom/BrowseForFolderFix

Fix BrowseForFolder
This commit is contained in:
Henrik Rydgård 2013-09-07 13:41:32 -07:00
commit 634aa7649e

View File

@ -14,10 +14,12 @@ namespace W32Util
{
std::string BrowseForFolder(HWND parent, char *title)
{
std::wstring titleString = ConvertUTF8ToWString(title);
BROWSEINFO info;
memset(&info,0,sizeof(info));
info.hwndOwner = parent;
info.lpszTitle = ConvertUTF8ToWString(title).c_str();
info.lpszTitle = titleString.c_str();
info.ulFlags = BIF_EDITBOX | BIF_RETURNONLYFSDIRS | BIF_USENEWUI;
//info.pszDisplayName