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
ea532f63
Commit
ea532f63
authored
Mar 16, 2012
by
Christian Costa
Committed by
Alexandre Julliard
Mar 16, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3drm: Add refcount info to AddRef and Release traces.
parent
549f8796
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
15 deletions
+20
-15
d3drm.c
dlls/d3drm/d3drm.c
+4
-3
device.c
dlls/d3drm/device.c
+4
-3
frame.c
dlls/d3drm/frame.c
+4
-3
meshbuilder.c
dlls/d3drm/meshbuilder.c
+4
-3
viewport.c
dlls/d3drm/viewport.c
+4
-3
No files found.
dlls/d3drm/d3drm.c
View file @
ea532f63
...
...
@@ -87,10 +87,11 @@ static HRESULT WINAPI IDirect3DRMImpl_QueryInterface(IDirect3DRM* iface, REFIID
static
ULONG
WINAPI
IDirect3DRMImpl_AddRef
(
IDirect3DRM
*
iface
)
{
IDirect3DRMImpl
*
This
=
impl_from_IDirect3DRM
(
iface
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p/%p)
\n
"
,
iface
,
This
);
TRACE
(
"(%p/%p)
->(): new ref = %d
\n
"
,
iface
,
This
,
ref
);
return
InterlockedIncrement
(
&
This
->
ref
)
;
return
ref
;
}
static
ULONG
WINAPI
IDirect3DRMImpl_Release
(
IDirect3DRM
*
iface
)
...
...
@@ -98,7 +99,7 @@ static ULONG WINAPI IDirect3DRMImpl_Release(IDirect3DRM* iface)
IDirect3DRMImpl
*
This
=
impl_from_IDirect3DRM
(
iface
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p/%p)
\n
"
,
iface
,
This
);
TRACE
(
"(%p/%p)
->(): new ref = %d
\n
"
,
iface
,
This
,
ref
);
if
(
!
ref
)
HeapFree
(
GetProcessHeap
(),
0
,
This
);
...
...
dlls/d3drm/device.c
View file @
ea532f63
...
...
@@ -93,10 +93,11 @@ static HRESULT WINAPI IDirect3DRMDevice2Impl_QueryInterface(IDirect3DRMDevice2*
static
ULONG
WINAPI
IDirect3DRMDevice2Impl_AddRef
(
IDirect3DRMDevice2
*
iface
)
{
IDirect3DRMDeviceImpl
*
This
=
impl_from_IDirect3DRMDevice2
(
iface
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p)
\n
"
,
This
);
TRACE
(
"(%p)
->(): new ref = %d
\n
"
,
iface
,
ref
);
return
InterlockedIncrement
(
&
This
->
ref
)
;
return
ref
;
}
static
ULONG
WINAPI
IDirect3DRMDevice2Impl_Release
(
IDirect3DRMDevice2
*
iface
)
...
...
@@ -104,7 +105,7 @@ static ULONG WINAPI IDirect3DRMDevice2Impl_Release(IDirect3DRMDevice2* iface)
IDirect3DRMDeviceImpl
*
This
=
impl_from_IDirect3DRMDevice2
(
iface
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p)
\n
"
,
This
);
TRACE
(
"(%p)
->(): new ref = %d
\n
"
,
iface
,
ref
);
if
(
!
ref
)
HeapFree
(
GetProcessHeap
(),
0
,
This
);
...
...
dlls/d3drm/frame.c
View file @
ea532f63
...
...
@@ -78,10 +78,11 @@ static HRESULT WINAPI IDirect3DRMFrame2Impl_QueryInterface(IDirect3DRMFrame2* if
static
ULONG
WINAPI
IDirect3DRMFrame2Impl_AddRef
(
IDirect3DRMFrame2
*
iface
)
{
IDirect3DRMFrameImpl
*
This
=
impl_from_IDirect3DRMFrame2
(
iface
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p)
\n
"
,
This
);
TRACE
(
"(%p)
->(): new ref = %d
\n
"
,
This
,
ref
);
return
InterlockedIncrement
(
&
This
->
ref
)
;
return
ref
;
}
static
ULONG
WINAPI
IDirect3DRMFrame2Impl_Release
(
IDirect3DRMFrame2
*
iface
)
...
...
@@ -89,7 +90,7 @@ static ULONG WINAPI IDirect3DRMFrame2Impl_Release(IDirect3DRMFrame2* iface)
IDirect3DRMFrameImpl
*
This
=
impl_from_IDirect3DRMFrame2
(
iface
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p)
\n
"
,
This
);
TRACE
(
"(%p)
->(): new ref = %d
\n
"
,
This
,
ref
);
if
(
!
ref
)
HeapFree
(
GetProcessHeap
(),
0
,
This
);
...
...
dlls/d3drm/meshbuilder.c
View file @
ea532f63
...
...
@@ -322,10 +322,11 @@ static HRESULT WINAPI IDirect3DRMMeshBuilder2Impl_QueryInterface(IDirect3DRMMesh
static
ULONG
WINAPI
IDirect3DRMMeshBuilder2Impl_AddRef
(
IDirect3DRMMeshBuilder2
*
iface
)
{
IDirect3DRMMeshBuilderImpl
*
This
=
impl_from_IDirect3DRMMeshBuilder2
(
iface
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p)
\n
"
,
This
);
TRACE
(
"(%p)
->(): new ref = %d
\n
"
,
This
,
ref
);
return
InterlockedIncrement
(
&
This
->
ref
)
;
return
ref
;
}
static
ULONG
WINAPI
IDirect3DRMMeshBuilder2Impl_Release
(
IDirect3DRMMeshBuilder2
*
iface
)
...
...
@@ -333,7 +334,7 @@ static ULONG WINAPI IDirect3DRMMeshBuilder2Impl_Release(IDirect3DRMMeshBuilder2*
IDirect3DRMMeshBuilderImpl
*
This
=
impl_from_IDirect3DRMMeshBuilder2
(
iface
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p)
\n
"
,
This
);
TRACE
(
"(%p)
->(): new ref = %d
\n
"
,
This
,
ref
);
if
(
!
ref
)
{
...
...
dlls/d3drm/viewport.c
View file @
ea532f63
...
...
@@ -80,10 +80,11 @@ static HRESULT WINAPI IDirect3DRMViewportImpl_QueryInterface(IDirect3DRMViewport
static
ULONG
WINAPI
IDirect3DRMViewportImpl_AddRef
(
IDirect3DRMViewport
*
iface
)
{
IDirect3DRMViewportImpl
*
This
=
impl_from_IDirect3DRMViewport
(
iface
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p)
\n
"
,
This
);
TRACE
(
"(%p)
->(): new ref = %d
\n
"
,
This
,
ref
);
return
InterlockedIncrement
(
&
This
->
ref
)
;
return
ref
;
}
static
ULONG
WINAPI
IDirect3DRMViewportImpl_Release
(
IDirect3DRMViewport
*
iface
)
...
...
@@ -91,7 +92,7 @@ static ULONG WINAPI IDirect3DRMViewportImpl_Release(IDirect3DRMViewport* iface)
IDirect3DRMViewportImpl
*
This
=
impl_from_IDirect3DRMViewport
(
iface
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p)
\n
"
,
This
);
TRACE
(
"(%p)
->(): new ref = %d
\n
"
,
This
,
ref
);
if
(
!
ref
)
HeapFree
(
GetProcessHeap
(),
0
,
This
);
...
...
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