From 71bc6a3459a1f678ef213b09ae39122a0c6baafd Mon Sep 17 00:00:00 2001 From: Tim Kosse Date: Tue, 11 Aug 2015 14:07:36 +0200 Subject: [PATCH] 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. --- windows/winhelp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows/winhelp.c b/windows/winhelp.c index 8b652c7b..64f6ad45 100644 --- a/windows/winhelp.c +++ b/windows/winhelp.c @@ -105,7 +105,7 @@ void launch_help(HWND hwnd, const char *topic) #endif /* NO_HTMLHELP */ if (help_path) { 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); } } else { -- 2.45.2