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
4cf842e7
Commit
4cf842e7
authored
Sep 27, 2011
by
Erich Hoover
Committed by
Alexandre Julliard
Sep 28, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hhctrl.ocx: When called as a program, quit when HtmlHelp call fails.
parent
f1b7bb4e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
hhctrl.c
dlls/hhctrl.ocx/hhctrl.c
+9
-2
No files found.
dlls/hhctrl.ocx/hhctrl.c
View file @
4cf842e7
...
...
@@ -349,6 +349,7 @@ int WINAPI doWinMain(HINSTANCE hInstance, LPSTR szCmdLine)
int
len
,
buflen
,
mapid
=
-
1
;
WCHAR
*
filename
;
char
*
endq
=
NULL
;
HWND
hwnd
;
hh_process
=
TRUE
;
...
...
@@ -404,12 +405,18 @@ int WINAPI doWinMain(HINSTANCE hInstance, LPSTR szCmdLine)
/* Open a specific help topic */
if
(
mapid
!=
-
1
)
HtmlHelpW
(
GetDesktopWindow
(),
filename
,
HH_HELP_CONTEXT
,
mapid
);
hwnd
=
HtmlHelpW
(
GetDesktopWindow
(),
filename
,
HH_HELP_CONTEXT
,
mapid
);
else
HtmlHelpW
(
GetDesktopWindow
(),
filename
,
HH_DISPLAY_TOPIC
,
0
);
hwnd
=
HtmlHelpW
(
GetDesktopWindow
(),
filename
,
HH_DISPLAY_TOPIC
,
0
);
heap_free
(
filename
);
if
(
!
hwnd
)
{
ERR
(
"Failed to open HTML Help file '%s'.
\n
"
,
szCmdLine
);
return
0
;
}
while
(
GetMessageW
(
&
msg
,
0
,
0
,
0
))
{
TranslateMessage
(
&
msg
);
...
...
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