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
3acf62f5
Commit
3acf62f5
authored
Jun 02, 2010
by
Eric Pouech
Committed by
Alexandre Julliard
Jun 07, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhelp: Added support for hotspot in images with target window embedded.
parent
8703e9c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
hlpfile.c
programs/winhlp32/hlpfile.c
+28
-0
No files found.
programs/winhlp32/hlpfile.c
View file @
3acf62f5
...
...
@@ -815,6 +815,34 @@ static void HLPFILE_AddHotSpotLinks(struct RtfData* rd, HLPFILE* file,
file
->
lpszPath
,
-
1
,
HLPFILE_Hash
(
str
),
0
,
1
,
-
1
);
break
;
case
0xEE
:
case
0xEF
:
{
const
char
*
win
=
strchr
(
str
,
'>'
);
int
wnd
=
-
1
;
char
*
tgt
=
NULL
;
if
(
win
)
{
for
(
wnd
=
file
->
numWindows
-
1
;
wnd
>=
0
;
wnd
--
)
{
if
(
!
strcmp
(
win
+
1
,
file
->
windows
[
wnd
].
name
))
break
;
}
if
(
wnd
==
-
1
)
WINE_WARN
(
"Couldn't find window info for %s
\n
"
,
win
);
if
((
tgt
=
HeapAlloc
(
GetProcessHeap
(),
0
,
win
-
str
+
1
)))
{
memcpy
(
tgt
,
str
,
win
-
str
);
tgt
[
win
-
str
]
=
'\0'
;
}
}
hslink
=
(
HLPFILE_HOTSPOTLINK
*
)
HLPFILE_AllocLink
(
rd
,
(
start
[
7
+
15
*
i
+
0
]
&
1
)
?
hlp_link_link
:
hlp_link_popup
,
file
->
lpszPath
,
-
1
,
HLPFILE_Hash
(
tgt
?
tgt
:
str
),
0
,
1
,
wnd
);
HeapFree
(
GetProcessHeap
(),
0
,
tgt
);
break
;
}
default:
WINE_FIXME
(
"unknown hotsport target 0x%x
\n
"
,
start
[
7
+
15
*
i
+
0
]);
}
...
...
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