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
7ceb62f9
Commit
7ceb62f9
authored
Apr 18, 2008
by
Eric Pouech
Committed by
Alexandre Julliard
Apr 21, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhelp: Fixed the parsing of a link containing both a .hlp file and a window name.
parent
4c236530
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
11 deletions
+16
-11
hlpfile.c
programs/winhelp/hlpfile.c
+16
-11
No files found.
programs/winhelp/hlpfile.c
View file @
7ceb62f9
...
...
@@ -1143,28 +1143,33 @@ static BOOL HLPFILE_AddParagraph(HLPFILE *hlpfile, BYTE *buf, BYTE *end, unsigne
char
*
ptr
=
(
char
*
)
format
+
8
;
BYTE
type
=
format
[
3
];
int
wnd
=
-
1
;
char
*
str
;
if
(
type
==
1
)
wnd
=
*
ptr
++
;
if
(
type
==
4
||
type
==
6
)
{
str
=
ptr
;
ptr
+=
strlen
(
ptr
)
+
1
;
}
else
str
=
hlpfile
->
lpszPath
;
if
(
type
==
6
)
switch
(
type
)
{
case
1
:
wnd
=
*
ptr
;
/* fall through */
case
0
:
ptr
=
hlpfile
->
lpszPath
;
break
;
case
6
:
for
(
wnd
=
hlpfile
->
numWindows
-
1
;
wnd
>=
0
;
wnd
--
)
{
if
(
!
strcmp
(
ptr
,
hlpfile
->
windows
[
wnd
].
name
))
break
;
}
if
(
wnd
==
-
1
)
WINE_WARN
(
"Couldn't find window info for %s
\n
"
,
ptr
);
ptr
+=
strlen
(
ptr
)
+
1
;
/* fall through */
case
4
:
break
;
default:
WINE_WARN
(
"Unknown link type %d
\n
"
,
type
);
break
;
}
HLPFILE_FreeLink
(
attributes
.
link
);
attributes
.
link
=
HLPFILE_AllocLink
((
*
format
&
4
)
?
hlp_link_link
:
hlp_link_popup
,
s
tr
,
GET_UINT
(
format
,
4
),
p
tr
,
GET_UINT
(
format
,
4
),
!
(
*
format
&
1
),
wnd
);
}
format
+=
3
+
GET_USHORT
(
format
,
1
);
...
...
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