Skip to content

Commit

Permalink
C4CrashHandlerWin32: Fix module names being formatted as ANSI strings…
Browse files Browse the repository at this point in the history
… instead of wide strings
  • Loading branch information
Fulgen301 committed Jan 11, 2025
1 parent f675cb1 commit 07e8bcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/C4CrashHandlerWin32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ namespace
module->dwSize = sizeof(*module);
for (BOOL success = Module32First(snapshot, module); success; success = Module32Next(snapshot, module))
{
LOG_DYNAMIC_TEXT("%32hs loaded at " POINTER_FORMAT " - " POINTER_FORMAT " (%hs)\n", module->szModule,
LOG_DYNAMIC_TEXT("%32ls loaded at " POINTER_FORMAT " - " POINTER_FORMAT " (%ls)\n", module->szModule,
reinterpret_cast<size_t>(module->modBaseAddr), reinterpret_cast<size_t>(module->modBaseAddr + module->modBaseSize),
module->szExePath);
}
Expand Down

0 comments on commit 07e8bcc

Please sign in to comment.