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
b6f197c7
Commit
b6f197c7
authored
Aug 07, 2015
by
Aaryaman Vasishta
Committed by
Alexandre Julliard
Aug 18, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3drm: Add helper for destroying device.
parent
f421e78b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
d3drm_private.h
dlls/d3drm/d3drm_private.h
+2
-0
device.c
dlls/d3drm/device.c
+6
-1
No files found.
dlls/d3drm/d3drm_private.h
View file @
b6f197c7
...
...
@@ -42,6 +42,8 @@ HRESULT Direct3DRMTexture_create(REFIID riid, IUnknown** ret_iface) DECLSPEC_HID
HRESULT
load_mesh_data
(
IDirect3DRMMeshBuilder3
*
iface
,
IDirectXFileData
*
data
,
D3DRMLOADTEXTURECALLBACK
load_texture_proc
,
void
*
arg
)
DECLSPEC_HIDDEN
;
void
d3drm_device_destroy
(
struct
d3drm_device
*
device
)
DECLSPEC_HIDDEN
;
struct
d3drm_file_header
{
WORD
major
;
...
...
dlls/d3drm/device.c
View file @
b6f197c7
...
...
@@ -75,6 +75,11 @@ IDirect3DRMDevice3 *IDirect3DRMDevice3_from_impl(struct d3drm_device *device)
return
&
device
->
IDirect3DRMDevice3_iface
;
}
void
d3drm_device_destroy
(
struct
d3drm_device
*
device
)
{
HeapFree
(
GetProcessHeap
(),
0
,
device
);
}
static
inline
struct
d3drm_device
*
impl_from_IDirect3DRMWinDevice
(
IDirect3DRMWinDevice
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
d3drm_device
,
IDirect3DRMWinDevice_iface
);
...
...
@@ -871,7 +876,7 @@ static ULONG WINAPI d3drm_device3_Release(IDirect3DRMDevice3 *iface)
TRACE
(
"%p decreasing refcount to %u.
\n
"
,
iface
,
refcount
);
if
(
!
refcount
)
HeapFree
(
GetProcessHeap
(),
0
,
device
);
d3drm_device_destroy
(
device
);
return
refcount
;
}
...
...
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