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
25b79faf
Commit
25b79faf
authored
Jun 21, 2008
by
Eric Pouech
Committed by
Alexandre Julliard
Jun 23, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhelp: Properly quit winhelp when no file are given on command line.
parent
0674e619
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
winhelp.c
programs/winhlp32/winhelp.c
+10
-0
No files found.
programs/winhlp32/winhelp.c
View file @
25b79faf
...
...
@@ -376,6 +376,13 @@ typedef struct
WORD
ofsData
;
}
WINHELP
,
*
LPWINHELP
;
static
BOOL
WINHELP_HasWorkingWindow
(
void
)
{
if
(
!
Globals
.
active_win
)
return
FALSE
;
if
(
Globals
.
active_win
->
next
||
Globals
.
win_list
!=
Globals
.
active_win
)
return
TRUE
;
return
Globals
.
active_win
->
page
!=
NULL
&&
Globals
.
active_win
->
page
->
file
!=
NULL
;
}
/******************************************************************
* WINHELP_HandleCommand
*
...
...
@@ -407,6 +414,7 @@ static LRESULT WINHELP_HandleCommand(HWND hSrcWnd, LPARAM lParam)
{
MACRO_JumpContext
(
ptr
,
"main"
,
wh
->
data
);
}
if
(
!
WINHELP_HasWorkingWindow
())
MACRO_Exit
();
break
;
case
HELP_QUIT
:
MACRO_Exit
();
...
...
@@ -416,9 +424,11 @@ static LRESULT WINHELP_HandleCommand(HWND hSrcWnd, LPARAM lParam)
{
MACRO_JumpContents
(
ptr
,
"main"
);
}
if
(
!
WINHELP_HasWorkingWindow
())
MACRO_Exit
();
break
;
case
HELP_HELPONHELP
:
MACRO_HelpOn
();
if
(
!
WINHELP_HasWorkingWindow
())
MACRO_Exit
();
break
;
/* case HELP_SETINDEX: */
case
HELP_SETCONTENTS
:
...
...
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