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
06561779
Commit
06561779
authored
Apr 15, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 15, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3drm: Get rid of Direct3DRM_create().
parent
0c228f5f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
17 deletions
+5
-17
d3drm.c
dlls/d3drm/d3drm.c
+5
-6
d3drm_main.c
dlls/d3drm/d3drm_main.c
+0
-10
d3drm_private.h
dlls/d3drm/d3drm_private.h
+0
-1
No files found.
dlls/d3drm/d3drm.c
View file @
06561779
...
...
@@ -1678,14 +1678,13 @@ static const struct IDirect3DRM3Vtbl Direct3DRM3_Vtbl =
IDirect3DRM3Impl_GetOptions
};
HRESULT
Direct3DRM_create
(
IUnknown
**
ppObj
)
HRESULT
WINAPI
Direct3DRMCreate
(
IDirect3DRM
**
d3drm
)
{
IDirect3DRMImpl
*
object
;
IDirect3DRMImpl
*
object
;
TRACE
(
"
(%p)
\n
"
,
ppObj
);
TRACE
(
"
d3drm %p.
\n
"
,
d3drm
);
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirect3DRMImpl
));
if
(
!
object
)
if
(
!
(
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
object
))))
return
E_OUTOFMEMORY
;
object
->
IDirect3DRM_iface
.
lpVtbl
=
&
Direct3DRM_Vtbl
;
...
...
@@ -1693,7 +1692,7 @@ HRESULT Direct3DRM_create(IUnknown** ppObj)
object
->
IDirect3DRM3_iface
.
lpVtbl
=
&
Direct3DRM3_Vtbl
;
object
->
ref
=
1
;
*
ppObj
=
(
IUnknown
*
)
&
object
->
IDirect3DRM_iface
;
*
d3drm
=
&
object
->
IDirect3DRM_iface
;
return
S_OK
;
}
dlls/d3drm/d3drm_main.c
View file @
06561779
...
...
@@ -42,13 +42,3 @@ BOOL WINAPI DllMain( HINSTANCE inst, DWORD reason, LPVOID reserved )
}
return
TRUE
;
}
/***********************************************************************
* (D3DRM.@)
*/
HRESULT
WINAPI
Direct3DRMCreate
(
LPDIRECT3DRM
*
ppDirect3DRM
)
{
TRACE
(
"(%p)
\n
"
,
ppDirect3DRM
);
return
Direct3DRM_create
((
IUnknown
**
)
ppDirect3DRM
);
}
dlls/d3drm/d3drm_private.h
View file @
06561779
...
...
@@ -24,7 +24,6 @@
#include "d3drm.h"
#include "dxfile.h"
HRESULT
Direct3DRM_create
(
IUnknown
**
ppObj
)
DECLSPEC_HIDDEN
;
HRESULT
Direct3DRMDevice_create
(
REFIID
riid
,
IUnknown
**
ppObj
)
DECLSPEC_HIDDEN
;
HRESULT
Direct3DRMFrame_create
(
REFIID
riid
,
IUnknown
*
parent_frame
,
IUnknown
**
ret_iface
)
DECLSPEC_HIDDEN
;
HRESULT
Direct3DRMLight_create
(
IUnknown
**
ppObj
)
DECLSPEC_HIDDEN
;
...
...
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