[PATCH 5/8] [WinHlp32]: use current file when no file is specified in JumpHash
Eric Pouech
eric.pouech at orange.fr
Sat May 30 07:26:46 CDT 2009
A+
---
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);
More information about the wine-patches
mailing list