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
ad66aa77
Commit
ad66aa77
authored
Apr 29, 2009
by
Nicolas Le Cam
Committed by
Alexandre Julliard
May 04, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw/tests: Fix a test failure on VirtualBox.
parent
2f376722
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
13 deletions
+21
-13
dsurface.c
dlls/ddraw/tests/dsurface.c
+21
-13
No files found.
dlls/ddraw/tests/dsurface.c
View file @
ad66aa77
...
@@ -1374,20 +1374,28 @@ static void AttachmentTest(void)
...
@@ -1374,20 +1374,28 @@ static void AttachmentTest(void)
ok
(
hr
==
DD_OK
,
"CreateSurface returned: %x
\n
"
,
hr
);
ok
(
hr
==
DD_OK
,
"CreateSurface returned: %x
\n
"
,
hr
);
hr
=
IDirectDrawSurface_AddAttachedSurface
(
surface1
,
surface2
);
hr
=
IDirectDrawSurface_AddAttachedSurface
(
surface1
,
surface2
);
ok
(
hr
==
DD_OK
,
"Attaching an offscreen plain surface to a front buffer returned %08x
\n
"
,
hr
);
ok
(
hr
==
DD_OK
||
broken
(
hr
==
DDERR_CANNOTATTACHSURFACE
),
/* Try the reverse without detaching first */
"Attaching an offscreen plain surface to a front buffer returned %08x
\n
"
,
hr
);
hr
=
IDirectDrawSurface_AddAttachedSurface
(
surface2
,
surface1
);
if
(
SUCCEEDED
(
hr
))
ok
(
hr
==
DDERR_SURFACEALREADYATTACHED
,
"Attaching an attached surface to its attachee returned %08x
\n
"
,
hr
);
{
hr
=
IDirectDrawSurface_DeleteAttachedSurface
(
surface1
,
0
,
surface2
);
/* Try the reverse without detaching first */
ok
(
hr
==
DD_OK
,
"DeleteAttachedSurface failed with %08x
\n
"
,
hr
);
hr
=
IDirectDrawSurface_AddAttachedSurface
(
surface2
,
surface1
);
ok
(
hr
==
DDERR_SURFACEALREADYATTACHED
,
"Attaching an attached surface to its attachee returned %08x
\n
"
,
hr
);
hr
=
IDirectDrawSurface_DeleteAttachedSurface
(
surface1
,
0
,
surface2
);
ok
(
hr
==
DD_OK
,
"DeleteAttachedSurface failed with %08x
\n
"
,
hr
);
}
hr
=
IDirectDrawSurface_AddAttachedSurface
(
surface2
,
surface1
);
hr
=
IDirectDrawSurface_AddAttachedSurface
(
surface2
,
surface1
);
ok
(
hr
==
DD_OK
,
"Attaching a front buffer to an offscreen plain surface returned %08x
\n
"
,
hr
);
ok
(
hr
==
DD_OK
||
broken
(
hr
==
DDERR_CANNOTATTACHSURFACE
),
/* Try to detach reversed */
"Attaching a front buffer to an offscreen plain surface returned %08x
\n
"
,
hr
);
hr
=
IDirectDrawSurface_DeleteAttachedSurface
(
surface1
,
0
,
surface2
);
if
(
SUCCEEDED
(
hr
))
ok
(
hr
==
DDERR_CANNOTDETACHSURFACE
,
"DeleteAttachedSurface returned %08x
\n
"
,
hr
);
{
/* Now the proper detach */
/* Try to detach reversed */
hr
=
IDirectDrawSurface_DeleteAttachedSurface
(
surface2
,
0
,
surface1
);
hr
=
IDirectDrawSurface_DeleteAttachedSurface
(
surface1
,
0
,
surface2
);
ok
(
hr
==
DD_OK
,
"DeleteAttachedSurface failed with %08x
\n
"
,
hr
);
ok
(
hr
==
DDERR_CANNOTDETACHSURFACE
,
"DeleteAttachedSurface returned %08x
\n
"
,
hr
);
/* Now the proper detach */
hr
=
IDirectDrawSurface_DeleteAttachedSurface
(
surface2
,
0
,
surface1
);
ok
(
hr
==
DD_OK
,
"DeleteAttachedSurface failed with %08x
\n
"
,
hr
);
}
hr
=
IDirectDrawSurface_AddAttachedSurface
(
surface2
,
surface3
);
/* Fails on refrast */
hr
=
IDirectDrawSurface_AddAttachedSurface
(
surface2
,
surface3
);
/* Fails on refrast */
ok
(
hr
==
DD_OK
||
broken
(
hr
==
DDERR_CANNOTATTACHSURFACE
),
ok
(
hr
==
DD_OK
||
broken
(
hr
==
DDERR_CANNOTATTACHSURFACE
),
"Attaching an offscreen plain surface to another offscreen plain surface returned %08x
\n
"
,
hr
);
"Attaching an offscreen plain surface to another offscreen plain surface returned %08x
\n
"
,
hr
);
...
...
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