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
3545dc51
Commit
3545dc51
authored
Nov 10, 2006
by
Kirill K. Smirnov
Committed by
Alexandre Julliard
Nov 13, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhelp: Use path of parent helpfile while looking for popup window.
parent
133477c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
winhelp.c
programs/winhelp/winhelp.c
+18
-1
No files found.
programs/winhelp/winhelp.c
View file @
3545dc51
...
...
@@ -117,8 +117,25 @@ HLPFILE* WINHELP_LookupHelpFile(LPCSTR lpszFile)
{
HLPFILE
*
hlpfile
;
char
szFullName
[
MAX_PATH
];
char
szAddPath
[
MAX_PATH
];
char
*
p
;
/*
* NOTE: This is needed by popup windows only.
* In other cases it's not needed but does not hurt though.
*/
if
(
Globals
.
active_win
&&
Globals
.
active_win
->
page
&&
Globals
.
active_win
->
page
->
file
)
{
strcpy
(
szAddPath
,
Globals
.
active_win
->
page
->
file
->
lpszPath
);
p
=
strrchr
(
szAddPath
,
'\\'
);
if
(
p
)
*
p
=
0
;
}
if
(
!
SearchPath
(
NULL
,
lpszFile
,
".hlp"
,
MAX_PATH
,
szFullName
,
NULL
))
/*
* FIXME: Should we swap conditions?
*/
if
(
!
SearchPath
(
NULL
,
lpszFile
,
".hlp"
,
MAX_PATH
,
szFullName
,
NULL
)
&&
!
SearchPath
(
szAddPath
,
lpszFile
,
".hlp"
,
MAX_PATH
,
szFullName
,
NULL
))
{
if
(
WINHELP_MessageBoxIDS_s
(
STID_FILE_NOT_FOUND_s
,
lpszFile
,
STID_WHERROR
,
MB_YESNO
|
MB_ICONQUESTION
)
!=
IDYES
)
...
...
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