Skip to content

Commit

Permalink
Convert LPCSTR to wstring properly in GetFullPathNameA
Browse files Browse the repository at this point in the history
  • Loading branch information
LostDragonist committed Mar 24, 2019
1 parent 5df4a82 commit 9d1c457
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/usvfs_dll/hooks/kernel32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1129,7 +1129,7 @@ DWORD WINAPI usvfs::hook_GetFullPathNameA(LPCSTR lpFileName, DWORD nBufferLength
std::string resolvedWithCMD;

std::wstring actualCWD;
fs::path filePath = lpFileName;
fs::path filePath = ush::string_cast<std::wstring>(lpFileName, CodePage::UTF8);
if (k32CurrentDirectoryTracker.get(actualCWD, filePath.wstring().c_str())) {
if (!filePath.is_absolute())
resolvedWithCMD =
Expand Down

0 comments on commit 9d1c457

Please sign in to comment.