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
2f76274d
Commit
2f76274d
authored
Jun 02, 2011
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jun 02, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10core: COM cleanup for the ID3D10Query iface.
parent
db9823e0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
async.c
dlls/d3d10core/async.c
+8
-3
d3d10core_private.h
dlls/d3d10core/d3d10core_private.h
+1
-1
device.c
dlls/d3d10core/device.c
+1
-1
No files found.
dlls/d3d10core/async.c
View file @
2f76274d
...
...
@@ -24,6 +24,11 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
d3d10core
);
static
inline
struct
d3d10_query
*
impl_from_ID3D10Query
(
ID3D10Query
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
d3d10_query
,
ID3D10Query_iface
);
}
/* IUnknown methods */
static
HRESULT
STDMETHODCALLTYPE
d3d10_query_QueryInterface
(
ID3D10Query
*
iface
,
REFIID
riid
,
void
**
object
)
...
...
@@ -48,7 +53,7 @@ static HRESULT STDMETHODCALLTYPE d3d10_query_QueryInterface(ID3D10Query *iface,
static
ULONG
STDMETHODCALLTYPE
d3d10_query_AddRef
(
ID3D10Query
*
iface
)
{
struct
d3d10_query
*
This
=
(
struct
d3d10_query
*
)
iface
;
struct
d3d10_query
*
This
=
impl_from_ID3D10Query
(
iface
)
;
ULONG
refcount
=
InterlockedIncrement
(
&
This
->
refcount
);
TRACE
(
"%p increasing refcount to %u.
\n
"
,
This
,
refcount
);
...
...
@@ -58,7 +63,7 @@ static ULONG STDMETHODCALLTYPE d3d10_query_AddRef(ID3D10Query *iface)
static
ULONG
STDMETHODCALLTYPE
d3d10_query_Release
(
ID3D10Query
*
iface
)
{
struct
d3d10_query
*
This
=
(
struct
d3d10_query
*
)
iface
;
struct
d3d10_query
*
This
=
impl_from_ID3D10Query
(
iface
)
;
ULONG
refcount
=
InterlockedDecrement
(
&
This
->
refcount
);
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
This
,
refcount
);
...
...
@@ -159,7 +164,7 @@ static const struct ID3D10QueryVtbl d3d10_query_vtbl =
HRESULT
d3d10_query_init
(
struct
d3d10_query
*
query
)
{
query
->
v
tbl
=
&
d3d10_query_vtbl
;
query
->
ID3D10Query_iface
.
lpV
tbl
=
&
d3d10_query_vtbl
;
query
->
refcount
=
1
;
return
S_OK
;
...
...
dlls/d3d10core/d3d10core_private.h
View file @
2f76274d
...
...
@@ -245,7 +245,7 @@ HRESULT d3d10_sampler_state_init(struct d3d10_sampler_state *state) DECLSPEC_HID
/* ID3D10Query */
struct
d3d10_query
{
const
struct
ID3D10QueryVtbl
*
vtbl
;
ID3D10Query
ID3D10Query_iface
;
LONG
refcount
;
};
...
...
dlls/d3d10core/device.c
View file @
2f76274d
...
...
@@ -1084,7 +1084,7 @@ static HRESULT STDMETHODCALLTYPE d3d10_device_CreateQuery(ID3D10Device *iface,
}
TRACE
(
"Created query %p.
\n
"
,
object
);
*
query
=
(
ID3D10Query
*
)
object
;
*
query
=
&
object
->
ID3D10Query_iface
;
return
S_OK
;
}
...
...
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