Skip to content

Commit

Permalink
Use Wide String Version
Browse files Browse the repository at this point in the history
  • Loading branch information
pegvin committed Sep 30, 2023
1 parent d74e1c0 commit 5a7e2e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ bool Fs::ListDir(const String& _dP, ListDirCallback cb) {
std::wstring dirPathWide = UTF8_To_WideString(dirPath);
WIN32_FIND_DATAW fdFile;

HANDLE hFind = FindFirstFileW(sPath, &fdFile);
HANDLE hFind = FindFirstFileW(dirPathWide.c_str(), &fdFile);
if (hFind == INVALID_HANDLE_VALUE) {
return false;
}
Expand Down

0 comments on commit 5a7e2e0

Please sign in to comment.