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
2a0fca79
Commit
2a0fca79
authored
Dec 29, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 29, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Add tests for invalid index in GetSysColorBrush().
parent
878f2873
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
sysparams.c
dlls/user32/tests/sysparams.c
+22
-0
No files found.
dlls/user32/tests/sysparams.c
View file @
2a0fca79
...
@@ -2764,6 +2764,27 @@ static void test_EnumDisplaySettings(void)
...
@@ -2764,6 +2764,27 @@ static void test_EnumDisplaySettings(void)
}
}
}
}
static
void
test_GetSysColorBrush
(
void
)
{
HBRUSH
hbr
;
SetLastError
(
0xdeadbeef
);
hbr
=
GetSysColorBrush
(
-
1
);
todo_wine
ok
(
hbr
==
NULL
,
"Expected NULL brush
\n
"
);
ok
(
GetLastError
()
==
0xdeadbeef
,
"Expected last error not set, got %x
\n
"
,
GetLastError
());
/* greater than max index */
hbr
=
GetSysColorBrush
(
COLOR_MENUBAR
);
if
(
hbr
)
{
SetLastError
(
0xdeadbeef
);
hbr
=
GetSysColorBrush
(
COLOR_MENUBAR
+
1
);
todo_wine
ok
(
hbr
==
NULL
,
"Expected NULL brush
\n
"
);
ok
(
GetLastError
()
==
0xdeadbeef
,
"Expected last error not set, got %x
\n
"
,
GetLastError
());
}
else
win_skip
(
"COLOR_MENUBAR unsupported
\n
"
);
}
START_TEST
(
sysparams
)
START_TEST
(
sysparams
)
{
{
int
argc
;
int
argc
;
...
@@ -2794,6 +2815,7 @@ START_TEST(sysparams)
...
@@ -2794,6 +2815,7 @@ START_TEST(sysparams)
test_GetSystemMetrics
(
);
test_GetSystemMetrics
(
);
trace
(
"testing EnumDisplaySettings vs GetDeviceCaps
\n
"
);
trace
(
"testing EnumDisplaySettings vs GetDeviceCaps
\n
"
);
test_EnumDisplaySettings
(
);
test_EnumDisplaySettings
(
);
test_GetSysColorBrush
(
);
change_counter
=
0
;
change_counter
=
0
;
change_last_param
=
0
;
change_last_param
=
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