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
fe017525
Commit
fe017525
authored
Feb 22, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 22, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windows.media.devices: Enable compilation with long types.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0b5bea5e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
Makefile.in
dlls/windows.media.devices/Makefile.in
+0
-1
main.c
dlls/windows.media.devices/main.c
+6
-6
No files found.
dlls/windows.media.devices/Makefile.in
View file @
fe017525
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
MODULE
=
windows.media.devices.dll
IMPORTS
=
combase
...
...
dlls/windows.media.devices/main.c
View file @
fe017525
...
...
@@ -109,7 +109,7 @@ static ULONG STDMETHODCALLTYPE windows_media_devices_AddRef(
{
struct
windows_media_devices
*
impl
=
impl_from_IActivationFactory
(
iface
);
ULONG
ref
=
InterlockedIncrement
(
&
impl
->
ref
);
TRACE
(
"iface %p, ref %u.
\n
"
,
iface
,
ref
);
TRACE
(
"iface %p, ref %
l
u.
\n
"
,
iface
,
ref
);
return
ref
;
}
...
...
@@ -118,7 +118,7 @@ static ULONG STDMETHODCALLTYPE windows_media_devices_Release(
{
struct
windows_media_devices
*
impl
=
impl_from_IActivationFactory
(
iface
);
ULONG
ref
=
InterlockedDecrement
(
&
impl
->
ref
);
TRACE
(
"iface %p, ref %u.
\n
"
,
iface
,
ref
);
TRACE
(
"iface %p, ref %
l
u.
\n
"
,
iface
,
ref
);
return
ref
;
}
...
...
@@ -181,14 +181,14 @@ static HRESULT get_default_device_id(EDataFlow direction, AudioDeviceRole role,
CLSCTX_INPROC_SERVER
,
&
IID_IMMDeviceEnumerator
,
(
void
**
)
&
devenum
);
if
(
FAILED
(
hr
))
{
WARN
(
"Failed to create MMDeviceEnumerator: %08x
\n
"
,
hr
);
WARN
(
"Failed to create MMDeviceEnumerator: %08
l
x
\n
"
,
hr
);
return
hr
;
}
hr
=
IMMDeviceEnumerator_GetDefaultAudioEndpoint
(
devenum
,
direction
,
mmdev_role
,
&
dev
);
if
(
FAILED
(
hr
))
{
WARN
(
"GetDefaultAudioEndpoint failed: %08x
\n
"
,
hr
);
WARN
(
"GetDefaultAudioEndpoint failed: %08
l
x
\n
"
,
hr
);
IMMDeviceEnumerator_Release
(
devenum
);
return
hr
;
}
...
...
@@ -196,7 +196,7 @@ static HRESULT get_default_device_id(EDataFlow direction, AudioDeviceRole role,
hr
=
IMMDevice_GetId
(
dev
,
&
devid
);
if
(
FAILED
(
hr
))
{
WARN
(
"GetId failed: %08x
\n
"
,
hr
);
WARN
(
"GetId failed: %08
l
x
\n
"
,
hr
);
IMMDevice_Release
(
dev
);
IMMDeviceEnumerator_Release
(
devenum
);
return
hr
;
...
...
@@ -217,7 +217,7 @@ static HRESULT get_default_device_id(EDataFlow direction, AudioDeviceRole role,
hr
=
WindowsCreateString
(
s
,
wcslen
(
s
),
device_id_hstr
);
if
(
FAILED
(
hr
))
WARN
(
"WindowsCreateString failed: %08x
\n
"
,
hr
);
WARN
(
"WindowsCreateString failed: %08
l
x
\n
"
,
hr
);
heap_free
(
s
);
...
...
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