dbghelp: Fix a typo in SymLoadModuleExW that caused the wrong number of characters to be passed to lstrcpynW.

This commit is contained in:
Rob Shearman 2008-02-14 14:38:35 +00:00 committed by Alexandre Julliard
parent 7579145ae1
commit f48941a2a8
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}