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
db5902ba
Commit
db5902ba
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: Store the history in correct order.
parent
6d40dbe3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
winhelp.c
programs/winhelp/winhelp.c
+9
-7
No files found.
programs/winhelp/winhelp.c
View file @
db5902ba
...
@@ -491,16 +491,17 @@ static void WINHELP_AddHistory(WINHELP_WINDOW* win, HLPFILE_PAGE* page)
...
@@ -491,16 +491,17 @@ static void WINHELP_AddHistory(WINHELP_WINDOW* win, HLPFILE_PAGE* page)
if
(
i
==
Globals
.
history
.
index
)
if
(
i
==
Globals
.
history
.
index
)
{
{
num
=
sizeof
(
Globals
.
history
.
set
)
/
sizeof
(
Globals
.
history
.
set
[
0
]);
num
=
sizeof
(
Globals
.
history
.
set
)
/
sizeof
(
Globals
.
history
.
set
[
0
]);
/* we're full, remove latest entry */
if
(
Globals
.
history
.
index
==
num
)
if
(
Globals
.
history
.
index
==
num
)
{
{
/* we're full, remove latest entry */
HLPFILE_FreeHlpFile
(
Globals
.
history
.
set
[
num
-
1
].
page
->
file
);
HLPFILE_FreeHlpFile
(
Globals
.
history
.
set
[
0
].
page
->
file
);
memmove
(
&
Globals
.
history
.
set
[
0
],
&
Globals
.
history
.
set
[
1
],
(
num
-
1
)
*
sizeof
(
Globals
.
history
.
set
[
0
]));
Globals
.
history
.
index
--
;
Globals
.
history
.
index
--
;
}
}
Globals
.
history
.
set
[
Globals
.
history
.
index
].
page
=
page
;
memmove
(
&
Globals
.
history
.
set
[
1
],
&
Globals
.
history
.
set
[
0
],
Globals
.
history
.
set
[
Globals
.
history
.
index
++
].
wininfo
=
win
->
info
;
Globals
.
history
.
index
*
sizeof
(
Globals
.
history
.
set
[
0
]));
Globals
.
history
.
set
[
0
].
page
=
page
;
Globals
.
history
.
set
[
0
].
wininfo
=
win
->
info
;
Globals
.
history
.
index
++
;
page
->
file
->
wRefCount
++
;
page
->
file
->
wRefCount
++
;
if
(
win
->
hHistoryWnd
)
InvalidateRect
(
win
->
hHistoryWnd
,
NULL
,
TRUE
);
if
(
win
->
hHistoryWnd
)
InvalidateRect
(
win
->
hHistoryWnd
,
NULL
,
TRUE
);
}
}
...
@@ -1297,7 +1298,8 @@ static LRESULT CALLBACK WINHELP_HistoryWndProc(HWND hWnd, UINT msg, WPARAM wPara
...
@@ -1297,7 +1298,8 @@ static LRESULT CALLBACK WINHELP_HistoryWndProc(HWND hWnd, UINT msg, WPARAM wPara
for
(
i
=
0
;
i
<
Globals
.
history
.
index
;
i
++
)
for
(
i
=
0
;
i
<
Globals
.
history
.
index
;
i
++
)
{
{
TextOut
(
hDc
,
0
,
i
*
tm
.
tmHeight
,
Globals
.
history
.
set
[
i
].
page
->
lpszTitle
,
TextOut
(
hDc
,
0
,
i
*
tm
.
tmHeight
,
Globals
.
history
.
set
[
i
].
page
->
lpszTitle
,
strlen
(
Globals
.
history
.
set
[
i
].
page
->
lpszTitle
));
strlen
(
Globals
.
history
.
set
[
i
].
page
->
lpszTitle
));
}
}
EndPaint
(
hWnd
,
&
ps
);
EndPaint
(
hWnd
,
&
ps
);
...
...
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