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
77da84b0
Commit
77da84b0
authored
Apr 29, 2014
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 29, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Cleanup d3d_execute_buffer_QueryInterface().
parent
b2e2b42b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
31 deletions
+10
-31
executebuffer.c
dlls/ddraw/executebuffer.c
+10
-31
No files found.
dlls/ddraw/executebuffer.c
View file @
77da84b0
...
...
@@ -420,45 +420,24 @@ static inline struct d3d_execute_buffer *impl_from_IDirect3DExecuteBuffer(IDirec
return
CONTAINING_RECORD
(
iface
,
struct
d3d_execute_buffer
,
IDirect3DExecuteBuffer_iface
);
}
/*****************************************************************************
* IDirect3DExecuteBuffer::QueryInterface
*
* Well, a usual QueryInterface function. Don't know fur sure which
* interfaces it can Query.
*
* Params:
* riid: The interface ID queried for
* obj: Address to return the interface pointer at
*
* Returns:
* D3D_OK in case of a success (S_OK? Think it's the same)
* OLE_E_ENUM_NOMORE if the interface wasn't found.
* (E_NOINTERFACE?? Don't know what I really need)
*
*****************************************************************************/
static
HRESULT
WINAPI
d3d_execute_buffer_QueryInterface
(
IDirect3DExecuteBuffer
*
iface
,
REFIID
riid
,
void
**
obj
)
static
HRESULT
WINAPI
d3d_execute_buffer_QueryInterface
(
IDirect3DExecuteBuffer
*
iface
,
REFIID
iid
,
void
**
out
)
{
TRACE
(
"iface %p,
riid %s, object %p.
\n
"
,
iface
,
debugstr_guid
(
riid
),
obj
);
TRACE
(
"iface %p,
iid %s, out %p.
\n
"
,
iface
,
debugstr_guid
(
iid
),
out
);
*
obj
=
NULL
;
if
(
IsEqualGUID
(
&
IID_IUnknown
,
riid
)
)
{
IDirect3DExecuteBuffer_AddRef
(
iface
);
*
obj
=
iface
;
TRACE
(
" Creating IUnknown interface at %p.
\n
"
,
*
obj
);
return
S_OK
;
}
if
(
IsEqualGUID
(
&
IID_IDirect3DExecuteBuffer
,
riid
)
)
{
if
(
IsEqualGUID
(
&
IID_IDirect3DExecuteBuffer
,
iid
)
||
IsEqualGUID
(
&
IID_IUnknown
,
iid
))
{
IDirect3DExecuteBuffer_AddRef
(
iface
);
*
obj
=
iface
;
TRACE
(
" Creating IDirect3DExecuteBuffer interface %p
\n
"
,
*
obj
);
*
out
=
iface
;
return
S_OK
;
}
FIXME
(
"(%p): interface for IID %s NOT found!
\n
"
,
iface
,
debugstr_guid
(
riid
));
WARN
(
"%s not implemented, returning E_NOINTERFACE.
\n
"
,
debugstr_guid
(
iid
));
*
out
=
NULL
;
return
E_NOINTERFACE
;
}
/*****************************************************************************
* IDirect3DExecuteBuffer::AddRef
*
...
...
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