Commit f48941a2 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

dbghelp: Fix a typo in SymLoadModuleExW that caused the wrong number of…

dbghelp: Fix a typo in SymLoadModuleExW that caused the wrong number of characters to be passed to lstrcpynW.
parent 7579145a
......@@ -555,7 +555,7 @@ DWORD64 WINAPI SymLoadModuleExW(HANDLE hProcess, HANDLE hFile, PCWSTR wImageNam
if (wModuleName)
module_set_module(module, wModuleName);
lstrcpynW(module->module.ImageName, wImageName,
sizeof(module->module.ImageName) / sizeof(CHAR));
sizeof(module->module.ImageName) / sizeof(WCHAR));
return module->module.BaseOfImage;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment