Module: wine Branch: master Commit: aba7b3df90a33fc032f6066338862d0082c9ef89 URL: http://source.winehq.org/git/wine.git/?a=commit;h=aba7b3df90a33fc032f6066338...
Author: Eric Pouech eric.pouech@orange.fr Date: Sat May 30 14:26:46 2009 +0200
winhlp32: Use current file when no file is specified in JumpHash.
---
programs/winhlp32/macro.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/programs/winhlp32/macro.c b/programs/winhlp32/macro.c index c2318ce..9a7f3fd 100644 --- a/programs/winhlp32/macro.c +++ b/programs/winhlp32/macro.c @@ -535,7 +535,10 @@ void CALLBACK MACRO_JumpHash(LPCSTR lpszPath, LPCSTR lpszWindow, LONG lHash) HLPFILE* hlpfile;
WINE_TRACE("("%s", "%s", %u)\n", lpszPath, lpszWindow, lHash); - hlpfile = WINHELP_LookupHelpFile(lpszPath); + if (!lpszPath || !lpszPath[0]) + hlpfile = MACRO_CurrentWindow()->page->file; + else + hlpfile = WINHELP_LookupHelpFile(lpszPath); WINHELP_OpenHelpWindow(HLPFILE_PageByHash, hlpfile, lHash, WINHELP_GetWindowInfo(hlpfile, lpszWindow), SW_NORMAL);