Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
d3fd3d73
Commit
d3fd3d73
authored
Jul 31, 2011
by
Eric Pouech
Committed by
Alexandre Julliard
Aug 01, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhlp32: Better protect macros against not finding a help file.
parent
862cc73f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
macro.c
programs/winhlp32/macro.c
+9
-8
No files found.
programs/winhlp32/macro.c
View file @
d3fd3d73
...
...
@@ -575,11 +575,11 @@ void CALLBACK MACRO_JumpContext(LPCSTR lpszPath, LPCSTR lpszWindow, LONG context
HLPFILE
*
hlpfile
;
WINE_TRACE
(
"(
\"
%s
\"
,
\"
%s
\"
, %d)
\n
"
,
lpszPath
,
lpszWindow
,
context
);
hlpfile
=
WINHELP_LookupHelpFile
(
lpszPath
);
/* Some madness: what user calls 'context', hlpfile calls 'map' */
WINHELP_OpenHelpWindow
(
HLPFILE_PageByMap
,
hlpfile
,
context
,
WINHELP_GetWindowInfo
(
hlpfile
,
lpszWindow
),
SW_NORMAL
);
if
((
hlpfile
=
WINHELP_LookupHelpFile
(
lpszPath
)))
/* Some madness: what user calls 'context', hlpfile calls 'map' */
WINHELP_OpenHelpWindow
(
HLPFILE_PageByMap
,
hlpfile
,
context
,
WINHELP_GetWindowInfo
(
hlpfile
,
lpszWindow
),
SW_NORMAL
);
}
void
CALLBACK
MACRO_JumpHash
(
LPCSTR
lpszPath
,
LPCSTR
lpszWindow
,
LONG
lHash
)
...
...
@@ -591,9 +591,10 @@ void CALLBACK MACRO_JumpHash(LPCSTR lpszPath, LPCSTR lpszWindow, LONG lHash)
hlpfile
=
MACRO_CurrentWindow
()
->
page
->
file
;
else
hlpfile
=
WINHELP_LookupHelpFile
(
lpszPath
);
WINHELP_OpenHelpWindow
(
HLPFILE_PageByHash
,
hlpfile
,
lHash
,
WINHELP_GetWindowInfo
(
hlpfile
,
lpszWindow
),
SW_NORMAL
);
if
(
hlpfile
)
WINHELP_OpenHelpWindow
(
HLPFILE_PageByHash
,
hlpfile
,
lHash
,
WINHELP_GetWindowInfo
(
hlpfile
,
lpszWindow
),
SW_NORMAL
);
}
static
void
CALLBACK
MACRO_JumpHelpOn
(
void
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment