Skip to content

Commit

Permalink
fix ghc filesystem
Browse files Browse the repository at this point in the history
  • Loading branch information
dankmeme01 committed Jun 3, 2024
1 parent 2698472 commit 2cbbe92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform/Win32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ std::string formatAddressIntoOffsetImpl(uintptr_t addr) {
}

wchar_t buffer[MAX_PATH];
std::string const module_name = (!mod || !GetModuleFileNameW(mod, buffer, MAX_PATH)) ? "Unknown" : ghc::filesystem::path(buffer).filename().string();
std::string const module_name = (!mod || !GetModuleFileNameW(mod, buffer, MAX_PATH)) ? "Unknown" : std::filesystem::path(buffer).filename().string();

return fmt::format("{} + {:#x}", module_name, addr - reinterpret_cast<uintptr_t>(mod));
}
Expand Down

0 comments on commit 2cbbe92

Please sign in to comment.