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
f55e2374
Commit
f55e2374
authored
Aug 15, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Aug 16, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Use FAILED instead of NOT SUCCEEDED.
parent
28e1ec44
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ddraw.c
dlls/ddraw/ddraw.c
+3
-3
No files found.
dlls/ddraw/ddraw.c
View file @
f55e2374
...
...
@@ -4054,7 +4054,7 @@ static HRESULT WINAPI ddraw3_DuplicateSurface(IDirectDraw3 *iface,
TRACE
(
"iface %p, src %p, dst %p.
\n
"
,
iface
,
src
,
dst
);
src7
=
(
IDirectDrawSurface7
*
)
surface_from_surface3
((
IDirectDrawSurface3
*
)
src
);
hr
=
ddraw7_DuplicateSurface
((
IDirectDraw7
*
)
ddraw_from_ddraw3
(
iface
),
src7
,
&
dst7
);
if
(
!
SUCCEED
ED
(
hr
))
if
(
FAIL
ED
(
hr
))
return
hr
;
*
dst
=
(
IDirectDrawSurface
*
)
&
((
IDirectDrawSurfaceImpl
*
)
dst7
)
->
IDirectDrawSurface3_vtbl
;
return
hr
;
...
...
@@ -4069,7 +4069,7 @@ static HRESULT WINAPI ddraw2_DuplicateSurface(IDirectDraw2 *iface,
TRACE
(
"iface %p, src %p, dst %p.
\n
"
,
iface
,
src
,
dst
);
src7
=
(
IDirectDrawSurface7
*
)
surface_from_surface3
((
IDirectDrawSurface3
*
)
src
);
hr
=
ddraw7_DuplicateSurface
((
IDirectDraw7
*
)
ddraw_from_ddraw2
(
iface
),
src7
,
&
dst7
);
if
(
!
SUCCEED
ED
(
hr
))
if
(
FAIL
ED
(
hr
))
return
hr
;
*
dst
=
(
IDirectDrawSurface
*
)
&
((
IDirectDrawSurfaceImpl
*
)
dst7
)
->
IDirectDrawSurface3_vtbl
;
return
hr
;
...
...
@@ -4084,7 +4084,7 @@ static HRESULT WINAPI ddraw1_DuplicateSurface(IDirectDraw *iface,
TRACE
(
"iface %p, src %p, dst %p.
\n
"
,
iface
,
src
,
dst
);
src7
=
(
IDirectDrawSurface7
*
)
surface_from_surface3
((
IDirectDrawSurface3
*
)
src
);
hr
=
ddraw7_DuplicateSurface
((
IDirectDraw7
*
)
ddraw_from_ddraw1
(
iface
),
src7
,
&
dst7
);
if
(
!
SUCCEED
ED
(
hr
))
if
(
FAIL
ED
(
hr
))
return
hr
;
*
dst
=
(
IDirectDrawSurface
*
)
&
((
IDirectDrawSurfaceImpl
*
)
dst7
)
->
IDirectDrawSurface3_vtbl
;
return
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