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
0fc7e99a
Commit
0fc7e99a
authored
Apr 11, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
Apr 13, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
devenum: Get rid of the MediaCatMoniker typedef.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6a95f683
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
17 deletions
+18
-17
devenum_private.h
dlls/devenum/devenum_private.h
+3
-3
mediacatenum.c
dlls/devenum/mediacatenum.c
+14
-13
parsedisplayname.c
dlls/devenum/parsedisplayname.c
+1
-1
No files found.
dlls/devenum/devenum_private.h
View file @
0fc7e99a
...
...
@@ -54,7 +54,7 @@ enum device_type
DEVICE_DMO
,
};
typedef
struct
struct
moniker
{
IMoniker
IMoniker_iface
;
LONG
ref
;
...
...
@@ -66,9 +66,9 @@ typedef struct
WCHAR
*
name
;
/* for filters and codecs */
CLSID
clsid
;
/* for DMOs */
};
}
MediaCatMoniker
;
};
MediaCatM
oniker
*
moniker_create
(
void
)
DECLSPEC_HIDDEN
;
struct
m
oniker
*
moniker_create
(
void
)
DECLSPEC_HIDDEN
;
HRESULT
enum_moniker_create
(
REFCLSID
class
,
IEnumMoniker
**
enum_mon
)
DECLSPEC_HIDDEN
;
extern
ICreateDevEnum
devenum_factory
DECLSPEC_HIDDEN
;
...
...
dlls/devenum/mediacatenum.c
View file @
0fc7e99a
...
...
@@ -319,7 +319,7 @@ static const IPropertyBagVtbl IPropertyBag_Vtbl =
property_bag_Write
,
};
static
HRESULT
property_bag_create
(
MediaCatM
oniker
*
mon
,
IPropertyBag
**
ppBag
)
static
HRESULT
property_bag_create
(
struct
m
oniker
*
mon
,
IPropertyBag
**
ppBag
)
{
RegPropBagImpl
*
rpb
=
CoTaskMemAlloc
(
sizeof
(
RegPropBagImpl
));
if
(
!
rpb
)
...
...
@@ -359,9 +359,9 @@ static HRESULT property_bag_create(MediaCatMoniker *mon, IPropertyBag **ppBag)
}
static
inline
MediaCatM
oniker
*
impl_from_IMoniker
(
IMoniker
*
iface
)
static
inline
struct
m
oniker
*
impl_from_IMoniker
(
IMoniker
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
MediaCatM
oniker
,
IMoniker_iface
);
return
CONTAINING_RECORD
(
iface
,
struct
m
oniker
,
IMoniker_iface
);
}
static
HRESULT
WINAPI
moniker_QueryInterface
(
IMoniker
*
iface
,
REFIID
riid
,
void
**
ppv
)
...
...
@@ -388,7 +388,7 @@ static HRESULT WINAPI moniker_QueryInterface(IMoniker *iface, REFIID riid, void
static
ULONG
WINAPI
moniker_AddRef
(
IMoniker
*
iface
)
{
MediaCatM
oniker
*
This
=
impl_from_IMoniker
(
iface
);
struct
m
oniker
*
This
=
impl_from_IMoniker
(
iface
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p) ref=%d
\n
"
,
This
,
ref
);
...
...
@@ -398,7 +398,7 @@ static ULONG WINAPI moniker_AddRef(IMoniker *iface)
static
ULONG
WINAPI
moniker_Release
(
IMoniker
*
iface
)
{
MediaCatM
oniker
*
This
=
impl_from_IMoniker
(
iface
);
struct
m
oniker
*
This
=
impl_from_IMoniker
(
iface
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p) ref=%d
\n
"
,
This
,
ref
);
...
...
@@ -413,7 +413,7 @@ static ULONG WINAPI moniker_Release(IMoniker *iface)
static
HRESULT
WINAPI
moniker_GetClassID
(
IMoniker
*
iface
,
CLSID
*
pClassID
)
{
MediaCatM
oniker
*
This
=
impl_from_IMoniker
(
iface
);
struct
m
oniker
*
This
=
impl_from_IMoniker
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
pClassID
);
...
...
@@ -458,7 +458,7 @@ static HRESULT WINAPI moniker_GetSizeMax(IMoniker *iface, ULARGE_INTEGER *pcbSiz
static
HRESULT
WINAPI
moniker_BindToObject
(
IMoniker
*
iface
,
IBindCtx
*
pbc
,
IMoniker
*
pmkToLeft
,
REFIID
riidResult
,
void
**
ppvResult
)
{
MediaCatM
oniker
*
This
=
impl_from_IMoniker
(
iface
);
struct
m
oniker
*
This
=
impl_from_IMoniker
(
iface
);
IUnknown
*
pObj
=
NULL
;
IPropertyBag
*
pProp
=
NULL
;
CLSID
clsID
;
...
...
@@ -527,7 +527,7 @@ static HRESULT WINAPI moniker_BindToObject(IMoniker *iface, IBindCtx *pbc,
static
HRESULT
WINAPI
moniker_BindToStorage
(
IMoniker
*
iface
,
IBindCtx
*
pbc
,
IMoniker
*
pmkToLeft
,
REFIID
riid
,
void
**
ppvObj
)
{
MediaCatM
oniker
*
This
=
impl_from_IMoniker
(
iface
);
struct
m
oniker
*
This
=
impl_from_IMoniker
(
iface
);
TRACE
(
"(%p)->(%p, %p, %s, %p)
\n
"
,
This
,
pbc
,
pmkToLeft
,
debugstr_guid
(
riid
),
ppvObj
);
...
...
@@ -681,7 +681,7 @@ static HRESULT WINAPI moniker_RelativePathTo(IMoniker *iface, IMoniker *pmkOther
static
HRESULT
WINAPI
moniker_GetDisplayName
(
IMoniker
*
iface
,
IBindCtx
*
pbc
,
IMoniker
*
pmkToLeft
,
LPOLESTR
*
ppszDisplayName
)
{
MediaCatM
oniker
*
This
=
impl_from_IMoniker
(
iface
);
struct
m
oniker
*
This
=
impl_from_IMoniker
(
iface
);
WCHAR
*
buffer
;
TRACE
(
"(%p)->(%p, %p, %p)
\n
"
,
iface
,
pbc
,
pmkToLeft
,
ppszDisplayName
);
...
...
@@ -768,10 +768,11 @@ static const IMonikerVtbl IMoniker_Vtbl =
moniker_IsSystemMoniker
,
};
MediaCatM
oniker
*
moniker_create
(
void
)
struct
m
oniker
*
moniker_create
(
void
)
{
MediaCatMoniker
*
pMoniker
=
NULL
;
pMoniker
=
CoTaskMemAlloc
(
sizeof
(
MediaCatMoniker
));
struct
moniker
*
pMoniker
;
pMoniker
=
CoTaskMemAlloc
(
sizeof
(
*
pMoniker
));
if
(
!
pMoniker
)
return
NULL
;
...
...
@@ -844,9 +845,9 @@ static HRESULT WINAPI enum_moniker_Next(IEnumMoniker *iface, ULONG celt, IMonike
{
EnumMonikerImpl
*
This
=
impl_from_IEnumMoniker
(
iface
);
WCHAR
buffer
[
MAX_PATH
+
1
];
struct
moniker
*
pMoniker
;
LONG
res
;
ULONG
fetched
=
0
;
MediaCatMoniker
*
pMoniker
;
CLSID
clsid
;
HRESULT
hr
;
HKEY
hkey
;
...
...
dlls/devenum/parsedisplayname.c
View file @
0fc7e99a
...
...
@@ -70,7 +70,7 @@ static HRESULT WINAPI devenum_parser_ParseDisplayName(IParseDisplayName *iface,
{
WCHAR
buffer
[
MAX_PATH
];
enum
device_type
type
;
MediaCatM
oniker
*
mon
;
struct
m
oniker
*
mon
;
CLSID
class
;
TRACE
(
"(%p, %s, %p, %p)
\n
"
,
pbc
,
debugstr_w
(
name
),
eaten
,
ret
);
...
...
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