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
87ca1b94
Commit
87ca1b94
authored
Nov 10, 2008
by
Lei Zhang
Committed by
Alexandre Julliard
Nov 11, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Check for NULL input in TAB_AdjustRect.
parent
1c64c934
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
tab.c
dlls/comctl32/tab.c
+2
-0
tab.c
dlls/comctl32/tests/tab.c
+18
-0
No files found.
dlls/comctl32/tab.c
View file @
87ca1b94
...
...
@@ -863,6 +863,8 @@ static LRESULT TAB_AdjustRect(const TAB_INFO *infoPtr, WPARAM fLarger, LPRECT pr
TRACE
(
"hwnd=%p fLarger=%ld (%s)
\n
"
,
infoPtr
->
hwnd
,
fLarger
,
wine_dbgstr_rect
(
prc
));
if
(
!
prc
)
return
-
1
;
if
(
lStyle
&
TCS_VERTICAL
)
{
iRightBottom
=
&
(
prc
->
right
);
...
...
dlls/comctl32/tests/tab.c
View file @
87ca1b94
...
...
@@ -856,6 +856,22 @@ static void test_getters_setters(HWND parent_wnd, INT nTabs)
DestroyWindow
(
hTab
);
}
static
void
test_adjustrect
(
HWND
parent_wnd
)
{
HWND
hTab
;
INT
r
;
ok
(
parent_wnd
!=
NULL
,
"no parent window!
\n
"
);
hTab
=
createFilledTabControl
(
parent_wnd
,
TCS_FIXEDWIDTH
,
0
,
0
);
ok
(
hTab
!=
NULL
,
"Failed to create tab control
\n
"
);
r
=
SendMessage
(
hTab
,
TCM_ADJUSTRECT
,
FALSE
,
0
);
expect
(
-
1
,
r
);
r
=
SendMessage
(
hTab
,
TCM_ADJUSTRECT
,
TRUE
,
0
);
expect
(
-
1
,
r
);
}
static
void
test_insert_focus
(
HWND
parent_wnd
)
{
HWND
hTab
;
...
...
@@ -1001,6 +1017,8 @@ START_TEST(tab)
/* Testing getters and setters with 5 tabs */
test_getters_setters
(
parent_wnd
,
5
);
test_adjustrect
(
parent_wnd
);
test_insert_focus
(
parent_wnd
);
test_delete_focus
(
parent_wnd
);
...
...
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