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
2f7053e6
Commit
2f7053e6
authored
Feb 25, 2010
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Feb 25, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Fix the DeleteDC test failures under Win9x.
parent
f08206b3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
dc.c
dlls/gdi32/tests/dc.c
+6
-9
No files found.
dlls/gdi32/tests/dc.c
View file @
2f7053e6
...
...
@@ -347,7 +347,7 @@ static void test_DeleteDC(void)
ret
=
DeleteDC
(
hdc
);
ok
(
ret
,
"DeleteDC failed
\n
"
);
ret
=
GetObjectType
(
hdc
);
ok
(
!
ret
,
"GetObjectType should fail for a deleted DC
\n
"
);
ok
(
!
ret
||
broken
(
ret
)
/* win9x */
,
"GetObjectType should fail for a deleted DC
\n
"
);
hdc
=
GetWindowDC
(
hwnd
);
ok
(
hdc
!=
0
,
"GetDC failed
\n
"
);
...
...
@@ -356,7 +356,7 @@ static void test_DeleteDC(void)
ret
=
DeleteDC
(
hdc
);
ok
(
ret
,
"DeleteDC failed
\n
"
);
ret
=
GetObjectType
(
hdc
);
ok
(
!
ret
,
"GetObjectType should fail for a deleted DC
\n
"
);
ok
(
!
ret
||
broken
(
ret
)
/* win9x */
,
"GetObjectType should fail for a deleted DC
\n
"
);
DestroyWindow
(
hwnd
);
...
...
@@ -371,7 +371,7 @@ static void test_DeleteDC(void)
ret
=
DeleteDC
(
hdc
);
ok
(
ret
,
"DeleteDC failed
\n
"
);
ret
=
GetObjectType
(
hdc
);
ok
(
!
ret
,
"GetObjectType should fail for a deleted DC
\n
"
);
ok
(
!
ret
||
broken
(
ret
)
/* win9x */
,
"GetObjectType should fail for a deleted DC
\n
"
);
hdc
=
GetWindowDC
(
hwnd
);
ok
(
hdc
!=
0
,
"GetDC failed
\n
"
);
...
...
@@ -380,7 +380,7 @@ static void test_DeleteDC(void)
ret
=
DeleteDC
(
hdc
);
ok
(
ret
,
"DeleteDC failed
\n
"
);
ret
=
GetObjectType
(
hdc
);
ok
(
!
ret
,
"GetObjectType should fail for a deleted DC
\n
"
);
ok
(
!
ret
||
broken
(
ret
)
/* win9x */
,
"GetObjectType should fail for a deleted DC
\n
"
);
/* CS_CLASSDC */
memset
(
&
cls
,
0
,
sizeof
(
cls
));
...
...
@@ -418,7 +418,7 @@ static void test_DeleteDC(void)
ret
=
DeleteDC
(
hdc
);
ok
(
ret
,
"DeleteDC failed
\n
"
);
ret
=
GetObjectType
(
hdc
);
ok
(
!
ret
,
"GetObjectType should fail for a deleted DC
\n
"
);
ok
(
!
ret
||
broken
(
ret
)
/* win9x */
,
"GetObjectType should fail for a deleted DC
\n
"
);
DestroyWindow
(
hwnd
);
...
...
@@ -466,13 +466,10 @@ todo_wine
ret
=
DeleteDC
(
hdc
);
ok
(
ret
,
"DeleteDC failed
\n
"
);
ret
=
GetObjectType
(
hdc
);
ok
(
!
ret
,
"GetObjectType should fail for a deleted DC
\n
"
);
ok
(
!
ret
||
broken
(
ret
)
/* win9x */
,
"GetObjectType should fail for a deleted DC
\n
"
);
DestroyWindow
(
hwnd
);
ret
=
GetObjectType
(
hdc_test
);
ok
(
!
ret
,
"GetObjectType should fail for a deleted DC
\n
"
);
ret
=
UnregisterClassA
(
"Wine own DC"
,
GetModuleHandle
(
NULL
));
ok
(
ret
,
"UnregisterClassA failed
\n
"
);
}
...
...
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