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
513f8286
Commit
513f8286
authored
Sep 30, 2013
by
Thomas Faber
Committed by
Alexandre Julliard
Sep 30, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mmdevapi: Fix build with MSVC.
parent
e615c67b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
devenum.c
dlls/mmdevapi/devenum.c
+2
-1
mmdevapi.h
dlls/mmdevapi/mmdevapi.h
+4
-4
No files found.
dlls/mmdevapi/devenum.c
View file @
513f8286
...
@@ -569,7 +569,8 @@ static HRESULT WINAPI MMDevice_Activate(IMMDevice *iface, REFIID riid, DWORD cls
...
@@ -569,7 +569,8 @@ static HRESULT WINAPI MMDevice_Activate(IMMDevice *iface, REFIID riid, DWORD cls
{
{
/* ::Load cannot assume the interface stays alive after the function returns,
/* ::Load cannot assume the interface stays alive after the function returns,
* so just create the interface on the stack, saves a lot of complicated code */
* so just create the interface on the stack, saves a lot of complicated code */
IPropertyBagImpl
bag
=
{
{
&
PB_Vtbl
},
This
->
devguid
};
IPropertyBagImpl
bag
=
{
{
&
PB_Vtbl
}
};
bag
.
devguid
=
This
->
devguid
;
hr
=
IPersistPropertyBag_Load
(
ppb
,
&
bag
.
IPropertyBag_iface
,
NULL
);
hr
=
IPersistPropertyBag_Load
(
ppb
,
&
bag
.
IPropertyBag_iface
,
NULL
);
IPersistPropertyBag_Release
(
ppb
);
IPersistPropertyBag_Release
(
ppb
);
if
(
FAILED
(
hr
))
if
(
FAILED
(
hr
))
...
...
dlls/mmdevapi/mmdevapi.h
View file @
513f8286
...
@@ -41,18 +41,18 @@ typedef struct _DriverFuncs {
...
@@ -41,18 +41,18 @@ typedef struct _DriverFuncs {
* If multiple drivers think they are valid, they will return a
* If multiple drivers think they are valid, they will return a
* priority value reflecting the likelihood that they are actually
* priority value reflecting the likelihood that they are actually
* valid. See enum _DriverPriority. */
* valid. See enum _DriverPriority. */
int
WINAPI
(
*
pGetPriority
)(
void
);
int
(
WINAPI
*
pGetPriority
)(
void
);
/* ids gets an array of human-friendly endpoint names
/* ids gets an array of human-friendly endpoint names
* keys gets an array of driver-specific stuff that is used
* keys gets an array of driver-specific stuff that is used
* in GetAudioEndpoint to identify the endpoint
* in GetAudioEndpoint to identify the endpoint
* it is the caller's responsibility to free both arrays, and
* it is the caller's responsibility to free both arrays, and
* all of the elements in both arrays with HeapFree() */
* all of the elements in both arrays with HeapFree() */
HRESULT
WINAPI
(
*
pGetEndpointIDs
)(
EDataFlow
flow
,
WCHAR
***
ids
,
HRESULT
(
WINAPI
*
pGetEndpointIDs
)(
EDataFlow
flow
,
WCHAR
***
ids
,
GUID
**
guids
,
UINT
*
num
,
UINT
*
default_index
);
GUID
**
guids
,
UINT
*
num
,
UINT
*
default_index
);
HRESULT
WINAPI
(
*
pGetAudioEndpoint
)(
void
*
key
,
IMMDevice
*
dev
,
HRESULT
(
WINAPI
*
pGetAudioEndpoint
)(
void
*
key
,
IMMDevice
*
dev
,
IAudioClient
**
out
);
IAudioClient
**
out
);
HRESULT
WINAPI
(
*
pGetAudioSessionManager
)(
IMMDevice
*
device
,
HRESULT
(
WINAPI
*
pGetAudioSessionManager
)(
IMMDevice
*
device
,
IAudioSessionManager2
**
out
);
IAudioSessionManager2
**
out
);
}
DriverFuncs
;
}
DriverFuncs
;
...
...
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