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
682f0dcf
Commit
682f0dcf
authored
Jun 01, 2010
by
Andrew Nguyen
Committed by
Alexandre Julliard
Jun 01, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32/tests: Uncomment and enhance a Win9x-specific Restore/SaveDC test.
parent
bc422174
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
3 deletions
+23
-3
dc.c
dlls/gdi32/tests/dc.c
+23
-3
No files found.
dlls/gdi32/tests/dc.c
View file @
682f0dcf
...
...
@@ -162,15 +162,35 @@ static void test_savedc(void)
ret
=
RestoreDC
(
hdc
,
3
);
ok
(
!
ret
,
"ret = %d
\n
"
,
ret
);
/* Under win98 the following two succeed and both clear the save stack
/* Under Win9x the following RestoreDC call succeeds and clears the save stack. */
ret
=
RestoreDC
(
hdc
,
-
3
);
ok
(
!
ret
||
broken
(
ret
),
/* Win9x */
"ret = %d
\n
"
,
ret
);
/* Trying to clear an empty save stack fails. */
ret
=
RestoreDC
(
hdc
,
-
3
);
ok
(
!
ret
,
"ret = %d
\n
"
,
ret
);
ret
=
SaveDC
(
hdc
);
ok
(
ret
==
3
||
broken
(
ret
==
1
),
/* Win9x */
"ret = %d
\n
"
,
ret
);
/* Under Win9x the following RestoreDC call succeeds and clears the save stack. */
ret
=
RestoreDC
(
hdc
,
0
);
ok
(
!
ret
||
broken
(
ret
),
/* Win9x */
"ret = %d
\n
"
,
ret
);
/* Trying to clear an empty save stack fails. */
ret
=
RestoreDC
(
hdc
,
0
);
ok
(
!
ret
,
"ret = %d
\n
"
,
ret
);
*/
ret
=
RestoreDC
(
hdc
,
1
);
ok
(
ret
,
"ret = %d
\n
"
,
ret
);
ok
(
ret
||
broken
(
!
ret
),
/* Win9x */
"ret = %d
\n
"
,
ret
);
DeleteDC
(
hdc
);
}
...
...
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