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
857d0e06
Commit
857d0e06
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: Also store the relative offsets of a page in the history and back information sets.
parent
a4480365
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
winhelp.c
programs/winhelp/winhelp.c
+7
-9
No files found.
programs/winhelp/winhelp.c
View file @
857d0e06
...
...
@@ -485,11 +485,11 @@ void WINHELP_LayoutMainWindow(WINHELP_WINDOW* win)
}
static
void
WINHELP_RememberPage
(
WINHELP_WINDOW
*
win
,
HLPFILE_PAGE
*
page
)
static
void
WINHELP_RememberPage
(
WINHELP_WINDOW
*
win
,
WINHELP_WNDPAGE
*
w
page
)
{
unsigned
num
;
if
(
!
Globals
.
history
.
index
||
Globals
.
history
.
set
[
0
].
page
!=
page
)
if
(
!
Globals
.
history
.
index
||
Globals
.
history
.
set
[
0
].
page
!=
wpage
->
page
)
{
num
=
sizeof
(
Globals
.
history
.
set
)
/
sizeof
(
Globals
.
history
.
set
[
0
]);
/* we're full, remove latest entry */
...
...
@@ -500,10 +500,9 @@ static void WINHELP_RememberPage(WINHELP_WINDOW* win, HLPFILE_PAGE* page)
}
memmove
(
&
Globals
.
history
.
set
[
1
],
&
Globals
.
history
.
set
[
0
],
Globals
.
history
.
index
*
sizeof
(
Globals
.
history
.
set
[
0
]));
Globals
.
history
.
set
[
0
].
page
=
page
;
Globals
.
history
.
set
[
0
].
wininfo
=
win
->
info
;
Globals
.
history
.
set
[
0
]
=
*
wpage
;
Globals
.
history
.
index
++
;
page
->
file
->
wRefCount
++
;
wpage
->
page
->
file
->
wRefCount
++
;
}
if
(
win
->
hHistoryWnd
)
InvalidateRect
(
win
->
hHistoryWnd
,
NULL
,
TRUE
);
...
...
@@ -516,9 +515,8 @@ static void WINHELP_RememberPage(WINHELP_WINDOW* win, HLPFILE_PAGE* page)
(
num
-
1
)
*
sizeof
(
win
->
back
.
set
[
0
]));
win
->
back
.
index
--
;
}
win
->
back
.
set
[
win
->
back
.
index
].
page
=
page
;
win
->
back
.
set
[
win
->
back
.
index
++
].
wininfo
=
win
->
info
;
page
->
file
->
wRefCount
++
;
win
->
back
.
set
[
win
->
back
.
index
++
]
=
*
wpage
;
wpage
->
page
->
file
->
wRefCount
++
;
}
/***********************************************************************
...
...
@@ -592,7 +590,7 @@ BOOL WINHELP_CreateHelpWindow(WINHELP_WNDPAGE* wpage, int nCmdShow, BOOL remembe
if
(
!
bPopup
&&
wpage
->
page
&&
remember
)
{
WINHELP_RememberPage
(
win
,
wpage
->
page
);
WINHELP_RememberPage
(
win
,
wpage
);
}
if
(
!
bPopup
)
...
...
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