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
72fab20f
Commit
72fab20f
authored
Oct 10, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Oct 12, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw/tests: Don't crash on older ddraw.
parent
bfe67814
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
ddrawmodes.c
dlls/ddraw/tests/ddrawmodes.c
+11
-4
No files found.
dlls/ddraw/tests/ddrawmodes.c
View file @
72fab20f
...
...
@@ -149,9 +149,14 @@ static void test_DirectDrawEnumerateA(void)
ret
=
pDirectDrawEnumerateA
((
LPDDENUMCALLBACKA
)
0xdeadbeef
,
NULL
);
ok
(
ret
==
DDERR_INVALIDPARAMS
,
"Expected DDERR_INVALIDPARAMS, got %d
\n
"
,
ret
);
/* Test with callback that crashes. */
ret
=
pDirectDrawEnumerateA
(
crash_callbackA
,
NULL
);
ok
(
ret
==
DDERR_INVALIDPARAMS
,
"Expected DDERR_INVALIDPARAMS, got %d
\n
"
,
ret
);
if
(
pDirectDrawEnumerateExA
)
{
/* Test with callback that crashes. */
ret
=
pDirectDrawEnumerateA
(
crash_callbackA
,
NULL
);
ok
(
ret
==
DDERR_INVALIDPARAMS
,
"Expected DDERR_INVALIDPARAMS, got %d
\n
"
,
ret
);
}
else
win_skip
(
"Test would crash on older ddraw
\n
"
);
/* Test with valid callback parameter and NULL context parameter. */
trace
(
"Calling DirectDrawEnumerateA with test_nullcontext_callbackA callback and NULL context.
\n
"
);
...
...
@@ -185,7 +190,9 @@ static void test_DirectDrawEnumerateW(void)
/* Test with NULL callback parameter. */
ret
=
pDirectDrawEnumerateW
(
NULL
,
NULL
);
ok
(
ret
==
DDERR_INVALIDPARAMS
,
"Expected DDERR_INVALIDPARAMS, got %d
\n
"
,
ret
);
ok
(
ret
==
DDERR_INVALIDPARAMS
||
ret
==
DDERR_UNSUPPORTED
,
/* Older ddraw */
"Expected DDERR_INVALIDPARAMS or DDERR_UNSUPPORTED, got %d
\n
"
,
ret
);
/* Test with invalid callback parameter. */
ret
=
pDirectDrawEnumerateW
((
LPDDENUMCALLBACKW
)
0xdeadbeef
,
NULL
);
...
...
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