Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
2d20a1aa
Commit
2d20a1aa
authored
Jun 12, 2010
by
Eric Pouech
Committed by
Alexandre Julliard
Jun 14, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhelp: Fix trailing space in window name for JumpID macro.
parent
cd43ff16
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
macro.c
programs/winhlp32/macro.c
+8
-4
No files found.
programs/winhlp32/macro.c
View file @
2d20a1aa
...
...
@@ -575,13 +575,17 @@ static void CALLBACK MACRO_JumpID(LPCSTR lpszPathWindow, LPCSTR topic_id)
if
((
ptr
=
strchr
(
lpszPathWindow
,
'>'
))
!=
NULL
)
{
LPSTR
tmp
;
size_t
sz
=
ptr
-
lpszPathWindow
;
size_t
sz
;
tmp
=
HeapAlloc
(
GetProcessHeap
(),
0
,
s
z
+
1
);
tmp
=
HeapAlloc
(
GetProcessHeap
(),
0
,
s
trlen
(
lpszPathWindow
)
+
1
);
if
(
tmp
)
{
memcpy
(
tmp
,
lpszPathWindow
,
sz
);
tmp
[
sz
]
=
'\0'
;
strcpy
(
tmp
,
lpszPathWindow
);
tmp
[
ptr
-
lpszPathWindow
]
=
'\0'
;
ptr
+=
tmp
-
lpszPathWindow
;
/* ptr now points to '>' in tmp buffer */
/* in some cases, we have a trailing space that we need to get rid of */
/* FIXME: check if it has to be done in lexer rather than here */
for
(
sz
=
strlen
(
ptr
+
1
);
sz
>=
1
&&
ptr
[
sz
]
==
' '
;
sz
--
)
ptr
[
sz
]
=
'\0'
;
MACRO_JumpHash
(
tmp
,
ptr
+
1
,
HLPFILE_Hash
(
topic_id
));
HeapFree
(
GetProcessHeap
(),
0
,
tmp
);
}
...
...
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