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
dfd7c70d
Commit
dfd7c70d
authored
Jan 19, 2012
by
André Hentschel
Committed by
Alexandre Julliard
Jan 20, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3drm: Reorder d3drm creation function to avoid forward declarations.
parent
9defecb0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
27 deletions
+23
-27
d3drm.c
dlls/d3drm/d3drm.c
+23
-27
No files found.
dlls/d3drm/d3drm.c
View file @
dfd7c70d
...
...
@@ -37,10 +37,6 @@ typedef struct {
LONG
ref
;
}
IDirect3DRMImpl
;
static
const
struct
IDirect3DRMVtbl
Direct3DRM_Vtbl
;
static
const
struct
IDirect3DRM2Vtbl
Direct3DRM2_Vtbl
;
static
const
struct
IDirect3DRM3Vtbl
Direct3DRM3_Vtbl
;
static
inline
IDirect3DRMImpl
*
impl_from_IDirect3DRM
(
IDirect3DRM
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
IDirect3DRMImpl
,
IDirect3DRM_iface
);
...
...
@@ -56,29 +52,6 @@ static inline IDirect3DRMImpl *impl_from_IDirect3DRM3(IDirect3DRM3 *iface)
return
CONTAINING_RECORD
(
iface
,
IDirect3DRMImpl
,
IDirect3DRM3_iface
);
}
HRESULT
Direct3DRM_create
(
IUnknown
**
ppObj
)
{
IDirect3DRMImpl
*
object
;
TRACE
(
"(%p)
\n
"
,
ppObj
);
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirect3DRMImpl
));
if
(
!
object
)
{
ERR
(
"Out of memory
\n
"
);
return
E_OUTOFMEMORY
;
}
object
->
IDirect3DRM_iface
.
lpVtbl
=
&
Direct3DRM_Vtbl
;
object
->
IDirect3DRM2_iface
.
lpVtbl
=
&
Direct3DRM2_Vtbl
;
object
->
IDirect3DRM3_iface
.
lpVtbl
=
&
Direct3DRM3_Vtbl
;
object
->
ref
=
1
;
*
ppObj
=
(
IUnknown
*
)
&
object
->
IDirect3DRM_iface
;
return
S_OK
;
}
/*** IUnknown methods ***/
static
HRESULT
WINAPI
IDirect3DRMImpl_QueryInterface
(
IDirect3DRM
*
iface
,
REFIID
riid
,
void
**
ppvObject
)
{
...
...
@@ -1378,3 +1351,26 @@ static const struct IDirect3DRM3Vtbl Direct3DRM3_Vtbl =
IDirect3DRM3Impl_SetOptions
,
IDirect3DRM3Impl_GetOptions
};
HRESULT
Direct3DRM_create
(
IUnknown
**
ppObj
)
{
IDirect3DRMImpl
*
object
;
TRACE
(
"(%p)
\n
"
,
ppObj
);
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirect3DRMImpl
));
if
(
!
object
)
{
ERR
(
"Out of memory
\n
"
);
return
E_OUTOFMEMORY
;
}
object
->
IDirect3DRM_iface
.
lpVtbl
=
&
Direct3DRM_Vtbl
;
object
->
IDirect3DRM2_iface
.
lpVtbl
=
&
Direct3DRM2_Vtbl
;
object
->
IDirect3DRM3_iface
.
lpVtbl
=
&
Direct3DRM3_Vtbl
;
object
->
ref
=
1
;
*
ppObj
=
(
IUnknown
*
)
&
object
->
IDirect3DRM_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