Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
f3d1d479
Commit
f3d1d479
authored
Mar 30, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 30, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Get rid of a couple of redundant else-statements.
parent
997be9c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
10 deletions
+17
-10
surface.c
dlls/ddraw/surface.c
+17
-10
No files found.
dlls/ddraw/surface.c
View file @
f3d1d479
...
...
@@ -150,44 +150,50 @@ static HRESULT WINAPI ddraw_surface7_QueryInterface(IDirectDrawSurface7 *iface,
TRACE
(
"(%p) returning IDirectDrawSurface7 interface at %p
\n
"
,
This
,
*
obj
);
return
S_OK
;
}
else
if
(
IsEqualGUID
(
riid
,
&
IID_IDirectDrawSurface4
))
if
(
IsEqualGUID
(
riid
,
&
IID_IDirectDrawSurface4
))
{
IDirectDrawSurface4_AddRef
(
&
This
->
IDirectDrawSurface4_iface
);
*
obj
=
&
This
->
IDirectDrawSurface4_iface
;
TRACE
(
"(%p) returning IDirectDrawSurface4 interface at %p
\n
"
,
This
,
*
obj
);
return
S_OK
;
}
else
if
(
IsEqualGUID
(
riid
,
&
IID_IDirectDrawSurface3
))
if
(
IsEqualGUID
(
riid
,
&
IID_IDirectDrawSurface3
))
{
IDirectDrawSurface3_AddRef
(
&
This
->
IDirectDrawSurface3_iface
);
*
obj
=
&
This
->
IDirectDrawSurface3_iface
;
TRACE
(
"(%p) returning IDirectDrawSurface3 interface at %p
\n
"
,
This
,
*
obj
);
return
S_OK
;
}
else
if
(
IsEqualGUID
(
riid
,
&
IID_IDirectDrawSurface2
))
if
(
IsEqualGUID
(
riid
,
&
IID_IDirectDrawSurface2
))
{
IDirectDrawSurface2_AddRef
(
&
This
->
IDirectDrawSurface2_iface
);
*
obj
=
&
This
->
IDirectDrawSurface2_iface
;
TRACE
(
"(%p) returning IDirectDrawSurface2 interface at %p
\n
"
,
This
,
*
obj
);
return
S_OK
;
}
else
if
(
IsEqualGUID
(
riid
,
&
IID_IDirectDrawSurface
))
if
(
IsEqualGUID
(
riid
,
&
IID_IDirectDrawSurface
))
{
IDirectDrawSurface_AddRef
(
&
This
->
IDirectDrawSurface_iface
);
*
obj
=
&
This
->
IDirectDrawSurface_iface
;
TRACE
(
"(%p) returning IDirectDrawSurface interface at %p
\n
"
,
This
,
*
obj
);
return
S_OK
;
}
else
if
(
IsEqualGUID
(
riid
,
&
IID_IDirectDrawGammaControl
)
)
if
(
IsEqualGUID
(
riid
,
&
IID_IDirectDrawGammaControl
))
{
IDirectDrawGammaControl_AddRef
(
&
This
->
IDirectDrawGammaControl_iface
);
*
obj
=
&
This
->
IDirectDrawGammaControl_iface
;
TRACE
(
"(%p) returning IDirectDrawGammaControl interface at %p
\n
"
,
This
,
*
obj
);
return
S_OK
;
}
else
if
(
IsEqualGUID
(
riid
,
&
IID_D3DDEVICE_WineD3D
)
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DHALDevice
)
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DRGBDevice
)
)
if
(
IsEqualGUID
(
riid
,
&
IID_D3DDEVICE_WineD3D
)
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DHALDevice
)
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DRGBDevice
))
{
IDirect3DDevice7
*
d3d
;
IDirect3DDeviceImpl
*
device_impl
;
...
...
@@ -208,8 +214,9 @@ static HRESULT WINAPI ddraw_surface7_QueryInterface(IDirectDrawSurface7 *iface,
WARN
(
"Unable to create a IDirect3DDevice instance, returning E_NOINTERFACE
\n
"
);
return
E_NOINTERFACE
;
}
else
if
(
IsEqualGUID
(
&
IID_IDirect3DTexture
,
riid
)
||
IsEqualGUID
(
&
IID_IDirect3DTexture2
,
riid
))
if
(
IsEqualGUID
(
&
IID_IDirect3DTexture2
,
riid
)
||
IsEqualGUID
(
&
IID_IDirect3DTexture
,
riid
))
{
if
(
IsEqualGUID
(
&
IID_IDirect3DTexture
,
riid
))
{
...
...
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