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
95aa1bab
Commit
95aa1bab
authored
Feb 01, 2022
by
Zebediah Figura
Committed by
Alexandre Julliard
Feb 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
devenum: Build without -DWINE_NO_LONG_TYPES.
Signed-off-by:
Zebediah Figura
<
zfigura@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
75b8dcd2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
24 deletions
+27
-24
Makefile.in
dlls/devenum/Makefile.in
+0
-1
createdevenum.c
dlls/devenum/createdevenum.c
+1
-1
mediacatenum.c
dlls/devenum/mediacatenum.c
+26
-22
No files found.
dlls/devenum/Makefile.in
View file @
95aa1bab
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
MODULE
=
devenum.dll
IMPORTS
=
dmoguids strmiids uuid ole32 oleaut32 avicap32 winmm user32 advapi32 dsound msdmo
DELAYIMPORTS
=
msvfw32
...
...
dlls/devenum/createdevenum.c
View file @
95aa1bab
...
...
@@ -769,7 +769,7 @@ static HRESULT WINAPI devenum_factory_CreateClassEnumerator(ICreateDevEnum *ifac
HRESULT
hr
;
HKEY
key
;
TRACE
(
"iface %p, class %s, out %p, flags %#x.
\n
"
,
iface
,
debugstr_guid
(
class
),
out
,
flags
);
TRACE
(
"iface %p, class %s, out %p, flags %#
l
x.
\n
"
,
iface
,
debugstr_guid
(
class
),
out
,
flags
);
if
(
!
out
)
return
E_POINTER
;
...
...
dlls/devenum/mediacatenum.c
View file @
95aa1bab
...
...
@@ -137,8 +137,8 @@ static HRESULT WINAPI property_bag_Read(IPropertyBag *iface,
}
else
if
(
!
wcscmp
(
name
,
L"FilterData"
))
{
unsigned
int
count
=
1
,
input_count
,
output_count
,
i
;
DMO_PARTIAL_MEDIATYPE
*
types
=
NULL
,
*
new_array
;
ULONG
count
=
1
,
input_count
,
output_count
,
i
;
REGFILTERPINS2
reg_pins
[
2
]
=
{{
0
}};
REGFILTER2
reg_filter
=
{
0
};
REGPINTYPES
*
reg_types
;
...
...
@@ -287,7 +287,7 @@ static HRESULT WINAPI property_bag_Read(IPropertyBag *iface,
return
S_OK
;
}
default:
FIXME
(
"Unhandled type %#x.
\n
"
,
type
);
FIXME
(
"Unhandled type %#
l
x.
\n
"
,
type
);
free
(
data
);
return
E_NOTIMPL
;
}
...
...
@@ -396,26 +396,27 @@ static HRESULT WINAPI moniker_QueryInterface(IMoniker *iface, REFIID riid, void
static
ULONG
WINAPI
moniker_AddRef
(
IMoniker
*
iface
)
{
struct
moniker
*
This
=
impl_from_IMoniker
(
iface
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
struct
moniker
*
moniker
=
impl_from_IMoniker
(
iface
);
ULONG
ref
count
=
InterlockedIncrement
(
&
moniker
->
ref
);
TRACE
(
"
(%p) ref=%d
\n
"
,
This
,
ref
);
TRACE
(
"
%p increasing refcount to %lu.
\n
"
,
moniker
,
refcount
);
return
ref
;
return
ref
count
;
}
static
ULONG
WINAPI
moniker_Release
(
IMoniker
*
iface
)
{
struct
moniker
*
This
=
impl_from_IMoniker
(
iface
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
ULONG
ref
count
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"
(%p) ref=%d
\n
"
,
This
,
ref
);
TRACE
(
"
%p decreasing refcount to %lu.
\n
"
,
This
,
refcount
);
if
(
ref
==
0
)
{
if
(
!
refcount
)
{
free
(
This
->
name
);
free
(
This
);
}
return
ref
;
return
ref
count
;
}
static
HRESULT
WINAPI
moniker_GetClassID
(
IMoniker
*
iface
,
CLSID
*
pClassID
)
...
...
@@ -558,7 +559,10 @@ static HRESULT WINAPI moniker_BindToStorage(IMoniker *iface, IBindCtx *pbc,
static
HRESULT
WINAPI
moniker_Reduce
(
IMoniker
*
iface
,
IBindCtx
*
pbc
,
DWORD
dwReduceHowFar
,
IMoniker
**
ppmkToLeft
,
IMoniker
**
ppmkReduced
)
{
TRACE
(
"(%p)->(%p, %d, %p, %p)
\n
"
,
iface
,
pbc
,
dwReduceHowFar
,
ppmkToLeft
,
ppmkReduced
);
struct
moniker
*
moniker
=
impl_from_IMoniker
(
iface
);
TRACE
(
"moniker %p, bind_ctx %p, how_far %#lx, left %p, reduced %p.
\n
"
,
moniker
,
pbc
,
dwReduceHowFar
,
ppmkToLeft
,
ppmkReduced
);
if
(
ppmkToLeft
)
*
ppmkToLeft
=
NULL
;
...
...
@@ -848,22 +852,22 @@ static HRESULT WINAPI enum_moniker_QueryInterface(IEnumMoniker *iface, REFIID ri
static
ULONG
WINAPI
enum_moniker_AddRef
(
IEnumMoniker
*
iface
)
{
EnumMonikerImpl
*
This
=
impl_from_IEnumMoniker
(
iface
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
EnumMonikerImpl
*
enumerator
=
impl_from_IEnumMoniker
(
iface
);
ULONG
ref
count
=
InterlockedIncrement
(
&
enumerator
->
ref
);
TRACE
(
"
(%p) ref=%d
\n
"
,
This
,
ref
);
TRACE
(
"
%p increasing refcount to %lu.
\n
"
,
enumerator
,
refcount
);
return
ref
;
return
ref
count
;
}
static
ULONG
WINAPI
enum_moniker_Release
(
IEnumMoniker
*
iface
)
{
EnumMonikerImpl
*
This
=
impl_from_IEnumMoniker
(
iface
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
ULONG
ref
count
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"
(%p) ref=%d
\n
"
,
This
,
ref
);
TRACE
(
"
%p decreasing refcount to %lu.
\n
"
,
This
,
refcount
);
if
(
!
ref
)
if
(
!
ref
count
)
{
if
(
This
->
dmo_enum
)
IEnumDMO_Release
(
This
->
dmo_enum
);
...
...
@@ -874,7 +878,7 @@ static ULONG WINAPI enum_moniker_Release(IEnumMoniker *iface)
free
(
This
);
return
0
;
}
return
ref
;
return
ref
count
;
}
static
struct
moniker
*
get_dmo_moniker
(
EnumMonikerImpl
*
enum_moniker
)
...
...
@@ -907,7 +911,7 @@ static HRESULT WINAPI enum_moniker_Next(IEnumMoniker *iface, ULONG celt, IMonike
ULONG
fetched
=
0
;
HKEY
hkey
;
TRACE
(
"
(%p)->(%d, %p, %p)
\n
"
,
iface
,
celt
,
rgelt
,
pceltFetched
);
TRACE
(
"
enumerator %p, count %lu, monikers %p, ret_count %p.
\n
"
,
This
,
celt
,
rgelt
,
pceltFetched
);
while
(
fetched
<
celt
)
{
...
...
@@ -944,7 +948,7 @@ static HRESULT WINAPI enum_moniker_Next(IEnumMoniker *iface, ULONG celt, IMonike
rgelt
[
fetched
++
]
=
&
moniker
->
IMoniker_iface
;
}
TRACE
(
"
-- fetched %d
\n
"
,
fetched
);
TRACE
(
"
Returning %lu monikers.
\n
"
,
fetched
);
if
(
pceltFetched
)
*
pceltFetched
=
fetched
;
...
...
@@ -959,7 +963,7 @@ static HRESULT WINAPI enum_moniker_Skip(IEnumMoniker *iface, ULONG celt)
{
EnumMonikerImpl
*
This
=
impl_from_IEnumMoniker
(
iface
);
TRACE
(
"
(%p)->(%d)
\n
"
,
iface
,
celt
);
TRACE
(
"
enumerator %p, count %lu.
\n
"
,
This
,
celt
);
while
(
celt
--
)
{
...
...
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