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
6af0e45d
Commit
6af0e45d
authored
Dec 17, 2007
by
Kirill K. Smirnov
Committed by
Alexandre Julliard
Dec 18, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhelp: Remember last added page.
parent
8e639ec3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
hlpfile.c
programs/winhelp/hlpfile.c
+6
-8
hlpfile.h
programs/winhelp/hlpfile.h
+1
-0
No files found.
programs/winhelp/hlpfile.c
View file @
6af0e45d
...
@@ -443,15 +443,14 @@ static BOOL HLPFILE_AddPage(HLPFILE *hlpfile, BYTE *buf, BYTE *end, unsigned off
...
@@ -443,15 +443,14 @@ static BOOL HLPFILE_AddPage(HLPFILE *hlpfile, BYTE *buf, BYTE *end, unsigned off
if
(
hlpfile
->
first_page
)
if
(
hlpfile
->
first_page
)
{
{
HLPFILE_PAGE
*
p
;
hlpfile
->
last_page
->
next
=
page
;
page
->
prev
=
hlpfile
->
last_page
;
for
(
p
=
hlpfile
->
first_page
;
p
->
next
;
p
=
p
->
next
);
hlpfile
->
last_page
=
page
;
page
->
prev
=
p
;
p
->
next
=
page
;
}
}
else
else
{
{
hlpfile
->
first_page
=
page
;
hlpfile
->
first_page
=
page
;
hlpfile
->
last_page
=
page
;
page
->
prev
=
NULL
;
page
->
prev
=
NULL
;
}
}
...
@@ -889,9 +888,8 @@ static BOOL HLPFILE_AddParagraph(HLPFILE *hlpfile, BYTE *buf, BYTE *end, unsigne
...
@@ -889,9 +888,8 @@ static BOOL HLPFILE_AddParagraph(HLPFILE *hlpfile, BYTE *buf, BYTE *end, unsigne
unsigned
short
bits
;
unsigned
short
bits
;
unsigned
nc
,
ncol
=
1
;
unsigned
nc
,
ncol
=
1
;
if
(
!
hlpfile
->
first_page
)
{
WINE_WARN
(
"no page
\n
"
);
return
FALSE
;};
if
(
!
hlpfile
->
last_page
)
{
WINE_WARN
(
"no page
\n
"
);
return
FALSE
;};
page
=
hlpfile
->
last_page
;
for
(
page
=
hlpfile
->
first_page
;
page
->
next
;
page
=
page
->
next
)
/* Nothing */
;
for
(
paragraphptr
=
&
page
->
first_paragraph
;
*
paragraphptr
;
for
(
paragraphptr
=
&
page
->
first_paragraph
;
*
paragraphptr
;
paragraphptr
=
&
(
*
paragraphptr
)
->
next
)
/* Nothing */
;
paragraphptr
=
&
(
*
paragraphptr
)
->
next
)
/* Nothing */
;
...
...
programs/winhelp/hlpfile.h
View file @
6af0e45d
...
@@ -122,6 +122,7 @@ typedef struct tagHlpFileFile
...
@@ -122,6 +122,7 @@ typedef struct tagHlpFileFile
LPSTR
lpszTitle
;
LPSTR
lpszTitle
;
LPSTR
lpszCopyright
;
LPSTR
lpszCopyright
;
HLPFILE_PAGE
*
first_page
;
HLPFILE_PAGE
*
first_page
;
HLPFILE_PAGE
*
last_page
;
HLPFILE_MACRO
*
first_macro
;
HLPFILE_MACRO
*
first_macro
;
BYTE
*
Context
;
BYTE
*
Context
;
BYTE
*
kwbtree
;
BYTE
*
kwbtree
;
...
...
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