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
bc718eec
Commit
bc718eec
authored
Dec 16, 2006
by
Andrew Talbot
Committed by
Alexandre Julliard
Dec 16, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhelp: Cast-qual warnings fix.
parent
e181d5d0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
hlpfile.c
programs/winhelp/hlpfile.c
+7
-4
No files found.
programs/winhelp/hlpfile.c
View file @
bc718eec
...
...
@@ -452,10 +452,12 @@ static BOOL HLPFILE_AddPage(HLPFILE *hlpfile, BYTE *buf, BYTE *end, unsigned off
while
(
ptr
<
page
->
lpszTitle
+
titlesize
)
{
unsigned
len
=
strlen
(
ptr
);
char
*
macro_str
;
WINE_TRACE
(
"macro: %s
\n
"
,
ptr
);
macro
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
HLPFILE_MACRO
)
+
len
+
1
);
macro
->
lpszMacro
=
(
char
*
)(
macro
+
1
);
memcpy
(
(
char
*
)
macro
->
lpszMacro
,
ptr
,
len
+
1
);
macro
->
lpszMacro
=
macro_str
=
(
char
*
)(
macro
+
1
);
memcpy
(
macro_str
,
ptr
,
len
+
1
);
/* FIXME: shall we really link macro in reverse order ??
* may produce strange results when played at page opening
*/
...
...
@@ -822,6 +824,7 @@ static HLPFILE_LINK* HLPFILE_AllocLink(int cookie, const char* str, LONG h
BOOL
clrChange
,
unsigned
wnd
)
{
HLPFILE_LINK
*
link
;
char
*
link_str
;
/* FIXME: should build a string table for the attributes.link.lpszPath
* they are reallocated for each link
...
...
@@ -830,8 +833,8 @@ static HLPFILE_LINK* HLPFILE_AllocLink(int cookie, const char* str, LONG h
if
(
!
link
)
return
NULL
;
link
->
cookie
=
cookie
;
link
->
lpszString
=
(
char
*
)
link
+
sizeof
(
HLPFILE_LINK
);
strcpy
(
(
char
*
)
link
->
lpszString
,
str
);
link
->
lpszString
=
link_str
=
(
char
*
)
link
+
sizeof
(
HLPFILE_LINK
);
strcpy
(
link_str
,
str
);
link
->
lHash
=
hash
;
link
->
bClrChange
=
clrChange
?
1
:
0
;
link
->
window
=
wnd
;
...
...
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