diff --git a/WeaselDeployer/DictManagementDialog.cpp b/WeaselDeployer/DictManagementDialog.cpp index 82a91de1d..b9d664506 100644 --- a/WeaselDeployer/DictManagementDialog.cpp +++ b/WeaselDeployer/DictManagementDialog.cpp @@ -4,11 +4,9 @@ #include #include #include "WeaselDeployer.h" -#include void static OpenFolderAndSelectItem(std::wstring filepath) { - filepath = std::regex_replace(filepath, std::wregex(L"/"), L"\\"); - std::wstring directory = std::filesystem::path(filepath).parent_path(); + std::wstring directory = std::filesystem::path(filepath).parent_path().wstring(); HRESULT hr; hr = CoInitializeEx(0, COINIT_MULTITHREADED);