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
9700b7fa
Commit
9700b7fa
authored
May 23, 2000
by
Aric Stewart
Committed by
Alexandre Julliard
May 23, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Corrected a problem of when oldHit is negative and we try to use it as
an index into the buttons array.
parent
1789f24e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
toolbar.c
dlls/comctl32/toolbar.c
+4
-1
No files found.
dlls/comctl32/toolbar.c
View file @
9700b7fa
...
...
@@ -3242,6 +3242,9 @@ TOOLBAR_MouseLeave (HWND hwnd, WPARAM wParam, LPARAM lParam)
TOOLBAR_INFO
*
infoPtr
=
TOOLBAR_GetInfoPtr
(
hwnd
);
TBUTTON_INFO
*
hotBtnPtr
;
if
(
infoPtr
->
nOldHit
<
0
)
return
TRUE
;
hotBtnPtr
=
&
infoPtr
->
buttons
[
infoPtr
->
nOldHit
];
/* Redraw the button if the last button we were over is the hot button and it
...
...
@@ -3299,7 +3302,7 @@ TOOLBAR_MouseMove (HWND hwnd, WPARAM wParam, LPARAM lParam)
{
/* Remove the effect of an old hot button if the button was enabled and was
drawn with the hot button effect */
if
(
infoPtr
->
nOldHit
==
infoPtr
->
nHotItem
&&
if
(
infoPtr
->
nOldHit
>=
0
&&
infoPtr
->
nOldHit
==
infoPtr
->
nHotItem
&&
(
infoPtr
->
buttons
[
infoPtr
->
nOldHit
].
fsState
&
TBSTATE_ENABLED
))
{
oldBtnPtr
=
&
infoPtr
->
buttons
[
infoPtr
->
nOldHit
];
...
...
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