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
ff5a860c
Commit
ff5a860c
authored
Oct 08, 2008
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 08, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw/tests: Use FAILED instead of !SUCCEEDED.
parent
56c6f767
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
d3d.c
dlls/ddraw/tests/d3d.c
+3
-3
overlay.c
dlls/ddraw/tests/overlay.c
+1
-1
No files found.
dlls/ddraw/tests/d3d.c
View file @
ff5a860c
...
...
@@ -102,7 +102,7 @@ static BOOL CreateDirect3D(void)
ddsd
.
dwWidth
=
256
;
ddsd
.
dwHeight
=
256
;
rc
=
IDirectDraw7_CreateSurface
(
lpDD
,
&
ddsd
,
&
lpDDS
,
NULL
);
if
(
!
SUCCEED
ED
(
rc
))
if
(
FAIL
ED
(
rc
))
return
FALSE
;
memset
(
&
ddsd
,
0
,
sizeof
(
ddsd
));
...
...
@@ -117,12 +117,12 @@ static BOOL CreateDirect3D(void)
ddsd
.
dwHeight
=
256
;
rc
=
IDirectDraw7_CreateSurface
(
lpDD
,
&
ddsd
,
&
lpDDSdepth
,
NULL
);
ok
(
rc
==
DD_OK
,
"CreateSurface returned: %x
\n
"
,
rc
);
if
(
!
SUCCEED
ED
(
rc
))
{
if
(
FAIL
ED
(
rc
))
{
lpDDSdepth
=
NULL
;
}
else
{
rc
=
IDirectDrawSurface_AddAttachedSurface
(
lpDDS
,
lpDDSdepth
);
ok
(
rc
==
DD_OK
,
"IDirectDrawSurface_AddAttachedSurface returned %x
\n
"
,
rc
);
if
(
!
SUCCEED
ED
(
rc
))
if
(
FAIL
ED
(
rc
))
return
FALSE
;
}
...
...
dlls/ddraw/tests/overlay.c
View file @
ff5a860c
...
...
@@ -76,7 +76,7 @@ static BOOL CreateDirectDraw(void)
ddsd
.
dwFlags
=
DDSD_CAPS
;
ddsd
.
ddsCaps
.
dwCaps
=
DDSCAPS_PRIMARYSURFACE
;
hr
=
IDirectDraw7_CreateSurface
(
ddraw
,
&
ddsd
,
&
primary
,
NULL
);
if
(
!
SUCCEED
ED
(
hr
))
{
if
(
FAIL
ED
(
hr
))
{
IDirectDraw7_Release
(
ddraw
);
trace
(
"IDirectDraw7_CreateSurface() failed with an error %x
\n
"
,
hr
);
return
FALSE
;
...
...
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