mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-21 13:05:04 -05:00
Fix type of 4th argument to WinHelp
We're passing a pointer as 4th argument to WinHelp. Do not cast it to DWORD which would truncate the pointer. Instead use UINT_PTR as that is what WinHelp expects.
This commit is contained in:
parent
f2e61275f2
commit
71bc6a3459
@ -105,7 +105,7 @@ void launch_help(HWND hwnd, const char *topic)
|
|||||||
#endif /* NO_HTMLHELP */
|
#endif /* NO_HTMLHELP */
|
||||||
if (help_path) {
|
if (help_path) {
|
||||||
char *cmd = dupprintf("JI(`',`%.*s')", colonpos, topic);
|
char *cmd = dupprintf("JI(`',`%.*s')", colonpos, topic);
|
||||||
WinHelp(hwnd, help_path, HELP_COMMAND, (DWORD)cmd);
|
WinHelp(hwnd, help_path, HELP_COMMAND, (ULONG_PTR)cmd);
|
||||||
sfree(cmd);
|
sfree(cmd);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user