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
0339e57f
Commit
0339e57f
authored
Jul 11, 2015
by
Aaryaman Vasishta
Committed by
Alexandre Julliard
Jul 13, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3drm: Move Release from device2->device3.
parent
ee6004ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
device.c
dlls/d3drm/device.c
+9
-9
No files found.
dlls/d3drm/device.c
View file @
0339e57f
...
...
@@ -100,14 +100,8 @@ static ULONG WINAPI d3drm_device2_AddRef(IDirect3DRMDevice2 *iface)
static
ULONG
WINAPI
d3drm_device2_Release
(
IDirect3DRMDevice2
*
iface
)
{
struct
d3drm_device
*
device
=
impl_from_IDirect3DRMDevice2
(
iface
);
ULONG
refcount
=
InterlockedDecrement
(
&
device
->
ref
);
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
iface
,
refcount
);
if
(
!
refcount
)
HeapFree
(
GetProcessHeap
(),
0
,
device
);
return
refcount
;
return
IDirect3DRMDevice3_Release
(
&
device
->
IDirect3DRMDevice3_iface
);
}
static
HRESULT
WINAPI
d3drm_device2_Clone
(
IDirect3DRMDevice2
*
iface
,
...
...
@@ -459,8 +453,14 @@ static ULONG WINAPI d3drm_device3_AddRef(IDirect3DRMDevice3 *iface)
static
ULONG
WINAPI
d3drm_device3_Release
(
IDirect3DRMDevice3
*
iface
)
{
struct
d3drm_device
*
device
=
impl_from_IDirect3DRMDevice3
(
iface
);
ULONG
refcount
=
InterlockedDecrement
(
&
device
->
ref
);
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
iface
,
refcount
);
return
d3drm_device2_Release
(
&
device
->
IDirect3DRMDevice2_iface
);
if
(
!
refcount
)
HeapFree
(
GetProcessHeap
(),
0
,
device
);
return
refcount
;
}
static
HRESULT
WINAPI
d3drm_device3_Clone
(
IDirect3DRMDevice3
*
iface
,
...
...
@@ -872,7 +872,7 @@ static ULONG WINAPI d3drm_device_win_Release(IDirect3DRMWinDevice *iface)
{
struct
d3drm_device
*
device
=
impl_from_IDirect3DRMWinDevice
(
iface
);
return
d3drm_device
2_Release
(
&
device
->
IDirect3DRMDevice2
_iface
);
return
d3drm_device
3_Release
(
&
device
->
IDirect3DRMDevice3
_iface
);
}
static
HRESULT
WINAPI
d3drm_device_win_Clone
(
IDirect3DRMWinDevice
*
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