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
d9fefdb9
Commit
d9fefdb9
authored
Dec 21, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Dec 22, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Cleanup IWineD3DBaseSwapChainImpl_QueryInterface().
parent
3f776831
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
swapchain_base.c
dlls/wined3d/swapchain_base.c
+16
-16
No files found.
dlls/wined3d/swapchain_base.c
View file @
d9fefdb9
...
...
@@ -27,23 +27,23 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
d3d
);
/* IDirect3DSwapChain IUnknown parts follow: */
HRESULT
WINAPI
IWineD3DBaseSwapChainImpl_QueryInterface
(
IWineD3DSwapChain
*
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
HRESULT
WINAPI
IWineD3DBaseSwapChainImpl_QueryInterface
(
IWineD3DSwapChain
*
iface
,
REFIID
riid
,
void
**
object
)
{
IWineD3DSwapChainImpl
*
This
=
(
IWineD3DSwapChainImpl
*
)
iface
;
TRACE
(
"(%p)->(%s,%p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
if
(
IsEqualGUID
(
riid
,
&
IID_I
Unknow
n
)
||
IsEqualGUID
(
riid
,
&
IID_IWineD3DBase
)
||
IsEqualGUID
(
riid
,
&
IID_IWineD3DSwapChain
)){
IWineD3DSwapChain_AddRef
(
iface
);
if
(
ppobj
==
NULL
){
ERR
(
"Query interface called but now data allocated
\n
"
)
;
return
E_NOINTERFACE
;
}
*
ppobj
=
This
;
return
WINED3D_OK
;
}
*
ppobj
=
NULL
;
return
E_NOINTERFACE
;
TRACE
(
"iface %p, riid %s, object %p.
\n
"
,
iface
,
debugstr_guid
(
riid
),
object
)
;
if
(
IsEqualGUID
(
riid
,
&
IID_I
WineD3DSwapChai
n
)
||
IsEqualGUID
(
riid
,
&
IID_IWineD3DBase
)
||
IsEqualGUID
(
riid
,
&
IID_IUnknown
))
{
IUnknown_AddRef
(
iface
);
*
object
=
iface
;
return
S_OK
;
}
WARN
(
"%s not implemented, returning E_NOINTERFACE.
\n
"
,
debugstr_guid
(
riid
))
;
*
object
=
NULL
;
return
E_NOINTERFACE
;
}
ULONG
WINAPI
IWineD3DBaseSwapChainImpl_AddRef
(
IWineD3DSwapChain
*
iface
)
{
...
...
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