mirror of
https://github.com/reactos/wine.git
synced 2025-02-10 14:23:52 +00:00
hhctrl.ocx: Fix the character count passed to GetFullPathNameW in OpenCHM and NavigateToChm.
This commit is contained in:
parent
9ca4680fce
commit
cedf6308aa
@ -342,7 +342,7 @@ CHMInfo *OpenCHM(LPCWSTR szFile)
|
||||
|
||||
CHMInfo *ret = heap_alloc_zero(sizeof(CHMInfo));
|
||||
|
||||
res = GetFullPathNameW(szFile, sizeof(file), file, NULL);
|
||||
res = GetFullPathNameW(szFile, sizeof(file)/sizeof(file[0]), file, NULL);
|
||||
ret->szFile = strdupW(file);
|
||||
|
||||
hres = CoCreateInstance(&CLSID_ITStorage, NULL, CLSCTX_INPROC_SERVER,
|
||||
|
@ -115,7 +115,7 @@ BOOL NavigateToChm(HHInfo *info, LPCWSTR file, LPCWSTR index)
|
||||
if (!info->web_browser)
|
||||
return FALSE;
|
||||
|
||||
if(!GetFullPathNameW(file, sizeof(full_path), full_path, NULL)) {
|
||||
if(!GetFullPathNameW(file, sizeof(full_path)/sizeof(full_path[0]), full_path, NULL)) {
|
||||
WARN("GetFullPathName failed: %u\n", GetLastError());
|
||||
return FALSE;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user