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
e862e7d8
Commit
e862e7d8
authored
Apr 22, 2008
by
Eric Pouech
Committed by
Alexandre Julliard
Apr 23, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhelp: Fix the loading of a row in a table (especially, for multiple…
winhelp: Fix the loading of a row in a table (especially, for multiple paragraphs in a single cell).
parent
e0032f0c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
hlpfile.c
programs/winhelp/hlpfile.c
+11
-7
No files found.
programs/winhelp/hlpfile.c
View file @
e862e7d8
...
...
@@ -882,6 +882,7 @@ static BOOL HLPFILE_BrowseParagraph(HLPFILE_PAGE* page, BYTE *buf, BYTE* end)
long
size
,
blocksize
,
datalen
;
unsigned
short
bits
;
unsigned
nc
,
ncol
=
1
;
BOOL
in_table
=
FALSE
;
for
(
paragraphptr
=
&
page
->
first_paragraph
;
*
paragraphptr
;
paragraphptr
=
&
(
*
paragraphptr
)
->
next
)
/* Nothing */
;
...
...
@@ -925,6 +926,7 @@ static BOOL HLPFILE_BrowseParagraph(HLPFILE_PAGE* page, BYTE *buf, BYTE* end)
{
char
type
;
in_table
=
TRUE
;
ncol
=
*
format
++
;
WINE_TRACE
(
"#cols %u
\n
"
,
ncol
);
...
...
@@ -934,15 +936,17 @@ static BOOL HLPFILE_BrowseParagraph(HLPFILE_PAGE* page, BYTE *buf, BYTE* end)
format
+=
ncol
*
4
;
}
for
(
nc
=
0
;
nc
<
ncol
;
nc
++
)
for
(
nc
=
0
;
nc
<
ncol
;
/**/
)
{
WINE_TRACE
(
"looking for format at offset %lu for column %d
\n
"
,
(
SIZE_T
)(
format
-
(
buf
+
0x15
)),
nc
);
if
(
buf
[
0x14
]
==
0x23
)
WINE_TRACE
(
"looking for format at offset %lu in column %d
\n
"
,
(
SIZE_T
)(
format
-
(
buf
+
0x15
)),
nc
);
if
(
in_table
)
{
nc
=
GET_SHORT
(
format
,
0
);
if
(
nc
==
-
1
)
break
;
format
+=
5
;
if
(
buf
[
0x14
]
==
0x01
)
format
+=
6
;
else
format
+=
4
;
}
else
nc
++
;
format
+=
4
;
bits
=
GET_USHORT
(
format
,
0
);
format
+=
2
;
if
(
bits
&
0x0001
)
fetch_long
(
&
format
);
if
(
bits
&
0x0002
)
fetch_short
(
&
format
);
...
...
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