Skip to content
This repository was archived by the owner on Sep 2, 2021. It is now read-only.

Commit e21f9de

Browse files
committed
fixes single file selection mode on Windows
1 parent c54371b commit e21f9de

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

appshell/appshell_extensions_win.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,9 @@ int32 ShowOpenDialog(bool allowMultipleSelection,
543543

544544
} else {
545545
// If multiple files are not allowed, add the single file
546-
selectedFiles->SetString(0, szFile);
546+
std::wstring filePath(szFile);
547+
ConvertToUnixPath(filePath);
548+
selectedFiles->SetString(0, filePath);
547549
}
548550
}
549551
}

0 commit comments

Comments
 (0)