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
8d959c99
Commit
8d959c99
authored
Nov 29, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Nov 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msdmo: Use an iface instead of a vtbl pointer in IEnumDMOImpl.
parent
41dce7cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
10 deletions
+15
-10
dmoreg.c
dlls/msdmo/dmoreg.c
+15
-10
No files found.
dlls/msdmo/dmoreg.c
View file @
8d959c99
...
...
@@ -85,7 +85,7 @@ static const WCHAR szToGuidFmt[] =
typedef
struct
{
const
IEnumDMOVtbl
*
lpVtbl
;
IEnumDMO
IEnumDMO_iface
;
LONG
ref
;
DWORD
index
;
const
GUID
*
guidCategory
;
...
...
@@ -97,6 +97,11 @@ typedef struct
HKEY
hkey
;
}
IEnumDMOImpl
;
static
inline
IEnumDMOImpl
*
impl_from_IEnumDMO
(
IEnumDMO
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
IEnumDMOImpl
,
IEnumDMO_iface
);
}
static
HRESULT
read_types
(
HKEY
root
,
LPCWSTR
key
,
ULONG
*
supplied
,
ULONG
requested
,
DMO_PARTIAL_MEDIATYPE
*
types
);
static
const
IEnumDMOVtbl
edmovt
;
...
...
@@ -332,7 +337,7 @@ lend:
*/
static
BOOL
IEnumDMO_Destructor
(
IEnumDMO
*
iface
)
{
IEnumDMOImpl
*
This
=
(
IEnumDMOImpl
*
)
iface
;
IEnumDMOImpl
*
This
=
impl_from_IEnumDMO
(
iface
)
;
TRACE
(
"%p
\n
"
,
This
);
...
...
@@ -366,7 +371,7 @@ static IEnumDMO * IEnumDMO_Constructor(
if
(
lpedmo
)
{
lpedmo
->
ref
=
1
;
lpedmo
->
lpVtbl
=
&
edmovt
;
lpedmo
->
IEnumDMO_iface
.
lpVtbl
=
&
edmovt
;
lpedmo
->
index
=
-
1
;
lpedmo
->
guidCategory
=
guidCategory
;
lpedmo
->
dwFlags
=
dwFlags
;
...
...
@@ -430,7 +435,7 @@ lerr:
*/
static
ULONG
WINAPI
IEnumDMO_fnAddRef
(
IEnumDMO
*
iface
)
{
IEnumDMOImpl
*
This
=
(
IEnumDMOImpl
*
)
iface
;
IEnumDMOImpl
*
This
=
impl_from_IEnumDMO
(
iface
)
;
return
InterlockedIncrement
(
&
This
->
ref
);
}
...
...
@@ -443,7 +448,7 @@ static HRESULT WINAPI IEnumDMO_fnQueryInterface(
REFIID
riid
,
LPVOID
*
ppvObj
)
{
IEnumDMOImpl
*
This
=
(
IEnumDMOImpl
*
)
iface
;
IEnumDMOImpl
*
This
=
impl_from_IEnumDMO
(
iface
)
;
*
ppvObj
=
NULL
;
...
...
@@ -467,7 +472,7 @@ static HRESULT WINAPI IEnumDMO_fnQueryInterface(
*/
static
ULONG
WINAPI
IEnumDMO_fnRelease
(
IEnumDMO
*
iface
)
{
IEnumDMOImpl
*
This
=
(
IEnumDMOImpl
*
)
iface
;
IEnumDMOImpl
*
This
=
impl_from_IEnumDMO
(
iface
)
;
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
ref
);
if
(
!
refCount
)
...
...
@@ -499,7 +504,7 @@ static HRESULT WINAPI IEnumDMO_fnNext(
UINT
count
=
0
;
HRESULT
hres
=
S_OK
;
IEnumDMOImpl
*
This
=
(
IEnumDMOImpl
*
)
iface
;
IEnumDMOImpl
*
This
=
impl_from_IEnumDMO
(
iface
)
;
TRACE
(
"--> (%p) %d %p %p %p
\n
"
,
iface
,
cItemsToFetch
,
pCLSID
,
Names
,
pcItemsFetched
);
...
...
@@ -638,7 +643,7 @@ static HRESULT WINAPI IEnumDMO_fnNext(
*/
static
HRESULT
WINAPI
IEnumDMO_fnSkip
(
IEnumDMO
*
iface
,
DWORD
cItemsToSkip
)
{
IEnumDMOImpl
*
This
=
(
IEnumDMOImpl
*
)
iface
;
IEnumDMOImpl
*
This
=
impl_from_IEnumDMO
(
iface
)
;
This
->
index
+=
cItemsToSkip
;
...
...
@@ -651,7 +656,7 @@ static HRESULT WINAPI IEnumDMO_fnSkip(IEnumDMO * iface, DWORD cItemsToSkip)
*/
static
HRESULT
WINAPI
IEnumDMO_fnReset
(
IEnumDMO
*
iface
)
{
IEnumDMOImpl
*
This
=
(
IEnumDMOImpl
*
)
iface
;
IEnumDMOImpl
*
This
=
impl_from_IEnumDMO
(
iface
)
;
This
->
index
=
-
1
;
...
...
@@ -664,7 +669,7 @@ static HRESULT WINAPI IEnumDMO_fnReset(IEnumDMO * iface)
*/
static
HRESULT
WINAPI
IEnumDMO_fnClone
(
IEnumDMO
*
iface
,
IEnumDMO
**
ppEnum
)
{
IEnumDMOImpl
*
This
=
(
IEnumDMOImpl
*
)
iface
;
IEnumDMOImpl
*
This
=
impl_from_IEnumDMO
(
iface
)
;
FIXME
(
"(%p)->() to (%p)->() E_NOTIMPL
\n
"
,
This
,
ppEnum
);
...
...
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