We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bc7549 commit ece9f95Copy full SHA for ece9f95
src/cinder/app/msw/PlatformMsw.cpp
@@ -213,7 +213,7 @@ namespace {
213
214
fs::path PlatformMsw::getFolderPath( const fs::path &initialPath )
215
{
216
- string result;
+ fs::path result;
217
218
// Store wide string to ensure it stays alive for SHBrowseForFolder
219
std::wstring initialPathWide = initialPath.wstring();
@@ -227,9 +227,9 @@ fs::path PlatformMsw::getFolderPath( const fs::path &initialPath )
227
setInsideModalLoop( false );
228
if( pidl ) {
229
// get the name of the folder
230
- TCHAR path[MAX_PATH];
+ wchar_t path[MAX_PATH];
231
if( ::SHGetPathFromIDList( pidl, path ) ) {
232
- result = msw::toUtf8String( path );
+ result = std::wstring( path );
233
}
234
235
// free memory used
0 commit comments