diff options
Diffstat (limited to 'core/helpers.cpp')
-rw-r--r-- | core/helpers.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/helpers.cpp b/core/helpers.cpp index b353da2e..5a996eee 100644 --- a/core/helpers.cpp +++ b/core/helpers.cpp @@ -90,7 +90,7 @@ void DirectorySearch(const char *path, const char *ext, std::vector<std::string> pathstr += ext; TRACE("Searching %s\n", pathstr.c_str()); - std::wstring wpath{utf8_to_wstr(pathstr.c_str())}; + std::wstring wpath{utf8_to_wstr(pathstr)}; WIN32_FIND_DATAW fdata; HANDLE hdl{FindFirstFileExW(wpath.c_str(), FindExInfoStandard, &fdata, FindExSearchNameMatch, NULL, 0)}; if(hdl == INVALID_HANDLE_VALUE) return; |