Skip to content

Commit 6584451

Browse files
committed
src: fix GetModuleFileName param
1 parent 0f261b5 commit 6584451

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/debug_utils.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ std::vector<std::string> NativeSymbolDebuggingContext::GetLoadedLibraries() {
482482
// Obtain and report the full pathname for each module
483483
if (GetModuleFileNameW(modules.data[i],
484484
module_name,
485-
arraysize(module_name) / sizeof(WCHAR))) {
485+
arraysize(module_name))) {
486486
DWORD size = WideCharToMultiByte(
487487
CP_UTF8, 0, module_name, -1, nullptr, 0, nullptr, nullptr);
488488
char* str = new char[size];

0 commit comments

Comments
 (0)