Fix BrowseForFolder

This commit is contained in:
Kingcom committed 2013-09-07 22:32:29 +02:00
1 parent 8c88dff5a4
commit 31a8a04675
1 file changed
+3 -1
+3 -1
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