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
73423c1a
Commit
73423c1a
authored
Aug 05, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32/tests: Fix some test failures on Win9x.
parent
e4cc0bc4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
gdiobj.c
dlls/gdi32/tests/gdiobj.c
+5
-5
No files found.
dlls/gdi32/tests/gdiobj.c
View file @
73423c1a
...
...
@@ -43,7 +43,7 @@ static void test_gdi_objects(void)
*/
SetLastError
(
0
);
hp
=
SelectObject
(
NULL
,
GetStockObject
(
BLACK_PEN
));
ok
(
!
hp
&&
GetLastError
()
==
ERROR_INVALID_HANDLE
,
ok
(
!
hp
&&
(
GetLastError
()
==
ERROR_INVALID_HANDLE
||
broken
(
!
GetLastError
()))
,
"SelectObject(NULL DC) expected 0, ERROR_INVALID_HANDLE, got %p, %u
\n
"
,
hp
,
GetLastError
());
...
...
@@ -77,7 +77,7 @@ static void test_gdi_objects(void)
/* GetObject does not SetLastError() on a null object */
SetLastError
(
0
);
i
=
GetObjectA
(
NULL
,
sizeof
(
buff
),
buff
);
ok
(
!
i
&&
!
GetLastError
(
),
ok
(
!
i
&&
(
GetLastError
()
==
0
||
GetLastError
()
==
ERROR_INVALID_PARAMETER
),
"GetObject(NULL obj), expected 0, NO_ERROR, got %d, %u
\n
"
,
i
,
GetLastError
());
...
...
@@ -207,7 +207,7 @@ static void test_GetCurrentObject(void)
hobj
=
GetCurrentObject
(
hdc
,
OBJ_PEN
);
ok
(
hobj
==
hpen
,
"OBJ_PEN is wrong: %p
\n
"
,
hobj
);
hobj
=
GetCurrentObject
(
hdc
,
OBJ_EXTPEN
);
ok
(
hobj
==
hpen
,
"OBJ_EXTPEN is wrong: %p
\n
"
,
hobj
);
ok
(
hobj
==
hpen
||
broken
(
hobj
==
0
)
/* win9x */
,
"OBJ_EXTPEN is wrong: %p
\n
"
,
hobj
);
hbrush
=
CreateSolidBrush
(
RGB
(
10
,
20
,
30
));
assert
(
hbrush
!=
0
);
...
...
@@ -243,7 +243,7 @@ static void test_GetCurrentObject(void)
hobj
=
GetCurrentObject
(
hdc
,
OBJ_PEN
);
ok
(
hobj
==
hpen
,
"OBJ_PEN is wrong: %p
\n
"
,
hobj
);
hobj
=
GetCurrentObject
(
hdc
,
OBJ_EXTPEN
);
ok
(
hobj
==
hpen
,
"OBJ_EXTPEN is wrong: %p
\n
"
,
hobj
);
ok
(
hobj
==
hpen
||
broken
(
hobj
==
0
)
/* win9x */
,
"OBJ_EXTPEN is wrong: %p
\n
"
,
hobj
);
hcs
=
GetColorSpace
(
hdc
);
if
(
hcs
)
...
...
@@ -254,7 +254,7 @@ static void test_GetCurrentObject(void)
ok
(
hcs
!=
0
,
"CreateColorSpace failed
\n
"
);
SelectObject
(
hdc
,
hcs
);
hobj
=
GetCurrentObject
(
hdc
,
OBJ_COLORSPACE
);
ok
(
hobj
==
hcs
,
"OBJ_COLORSPACE is wrong: %p
\n
"
,
hobj
);
ok
(
hobj
==
hcs
||
broken
(
hobj
==
0
)
/* win9x */
,
"OBJ_COLORSPACE is wrong: %p
\n
"
,
hobj
);
}
hrgn
=
CreateRectRgn
(
1
,
1
,
100
,
100
);
...
...
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