File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3838
3939
4040#include < vector>
41+ #include < sstream>
4142
4243#ifndef VK_0
4344#define VK_0 ' 0'
Original file line number Diff line number Diff line change @@ -1138,16 +1138,20 @@ std::vector<String> Win32Core::openFilePicker(std::vector<CoreFileExtension> ext
11381138 ofn.lpstrInitialDir =NULL ;
11391139
11401140 if (allowMultiple) {
1141- ofn.Flags = OFN_PATHMUSTEXIST|OFN_FILEMUSTEXIST|OFN_EXPLORER;
1142- } else {
11431141 ofn.Flags = OFN_PATHMUSTEXIST|OFN_FILEMUSTEXIST|OFN_ALLOWMULTISELECT|OFN_EXPLORER;
1142+ } else {
1143+ ofn.Flags = OFN_PATHMUSTEXIST|OFN_FILEMUSTEXIST|OFN_EXPLORER;
11441144 }
11451145
11461146 std::vector<String> retVec;
11471147
11481148 if (GetOpenFileName (&ofn)) {
11491149 if (allowMultiple) {
1150-
1150+ std::string buf;
1151+ std::stringstream filesList (String (fBuffer ).getSTLString ());
1152+
1153+ while (filesList >> buf)
1154+ retVec.push_back (buf);
11511155 } else {
11521156 retVec.push_back (String (fBuffer ));
11531157 }
You can’t perform that action at this time.
0 commit comments