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
6867735e
Commit
6867735e
authored
Apr 09, 2011
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 11, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tab: Fix invalid read of item data.
parent
6c710ae1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
tab.c
dlls/comctl32/tab.c
+1
-1
tab.c
dlls/comctl32/tests/tab.c
+3
-0
No files found.
dlls/comctl32/tab.c
View file @
6867735e
...
@@ -2500,7 +2500,7 @@ static void TAB_EnsureSelectionVisible(
...
@@ -2500,7 +2500,7 @@ static void TAB_EnsureSelectionVisible(
if
(
infoPtr
->
leftmostVisible
>=
iSelected
)
if
(
infoPtr
->
leftmostVisible
>=
iSelected
)
{
{
infoPtr
->
leftmostVisible
=
iSelected
;
i
f
(
iSelected
>=
0
)
i
nfoPtr
->
leftmostVisible
=
iSelected
;
}
}
else
else
{
{
...
...
dlls/comctl32/tests/tab.c
View file @
6867735e
...
@@ -1052,6 +1052,9 @@ static void test_insert_focus(HWND parent_wnd)
...
@@ -1052,6 +1052,9 @@ static void test_insert_focus(HWND parent_wnd)
hTab
=
createFilledTabControl
(
parent_wnd
,
TCS_FIXEDWIDTH
,
mask
,
0
);
hTab
=
createFilledTabControl
(
parent_wnd
,
TCS_FIXEDWIDTH
,
mask
,
0
);
ok
(
hTab
!=
NULL
,
"Failed to create tab control
\n
"
);
ok
(
hTab
!=
NULL
,
"Failed to create tab control
\n
"
);
r
=
SendMessage
(
hTab
,
TCM_GETCURSEL
,
0
,
0
);
expect
(
-
1
,
r
);
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
nTabsRetrieved
=
SendMessage
(
hTab
,
TCM_GETITEMCOUNT
,
0
,
0
);
nTabsRetrieved
=
SendMessage
(
hTab
,
TCM_GETITEMCOUNT
,
0
,
0
);
...
...
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