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
eae787f9
Commit
eae787f9
authored
Jun 11, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mmdevapi: Build with msvcrt.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ca0f73c0
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
17 deletions
+5
-17
Makefile.in
dlls/mmdevapi/Makefile.in
+2
-0
audiovolume.c
dlls/mmdevapi/audiovolume.c
+0
-2
devenum.c
dlls/mmdevapi/devenum.c
+2
-5
main.c
dlls/mmdevapi/main.c
+1
-6
mmdevapi.h
dlls/mmdevapi/mmdevapi.h
+0
-4
No files found.
dlls/mmdevapi/Makefile.in
View file @
eae787f9
MODULE
=
mmdevapi.dll
IMPORTS
=
uuid ole32 oleaut32 user32 advapi32
EXTRADLLFLAGS
=
-mno-cygwin
C_SRCS
=
\
audiovolume.c
\
devenum.c
\
...
...
dlls/mmdevapi/audiovolume.c
View file @
eae787f9
...
...
@@ -17,7 +17,6 @@
*/
#define COBJMACROS
#include "config.h"
#include <stdarg.h>
...
...
@@ -26,7 +25,6 @@
#include "winnls.h"
#include "winreg.h"
#include "wine/debug.h"
#include "wine/unicode.h"
#include "ole2.h"
#include "mmdeviceapi.h"
...
...
dlls/mmdevapi/devenum.c
View file @
eae787f9
...
...
@@ -16,8 +16,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "config.h"
#include <stdarg.h>
#define NONAMELESSUNION
...
...
@@ -28,7 +26,6 @@
#include "winreg.h"
#include "wine/debug.h"
#include "wine/list.h"
#include "wine/unicode.h"
#include "initguid.h"
#include "ole2.h"
...
...
@@ -448,7 +445,7 @@ static HRESULT load_devices_from_reg(void)
&&
SUCCEEDED
(
MMDevice_GetPropValue
(
&
guid
,
curflow
,
(
const
PROPERTYKEY
*
)
&
DEVPKEY_Device_FriendlyName
,
&
pv
))
&&
pv
.
vt
==
VT_LPWSTR
)
{
DWORD
size_bytes
=
(
strlenW
(
pv
.
u
.
pwszVal
)
+
1
)
*
sizeof
(
WCHAR
);
DWORD
size_bytes
=
(
l
strlenW
(
pv
.
u
.
pwszVal
)
+
1
)
*
sizeof
(
WCHAR
);
WCHAR
*
name
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size_bytes
);
memcpy
(
name
,
pv
.
u
.
pwszVal
,
size_bytes
);
MMDevice_Create
(
name
,
&
guid
,
curflow
,
...
...
@@ -1431,7 +1428,7 @@ static HRESULT WINAPI MMDevPropStore_GetAt(IPropertyStore *iface, DWORD prop, PR
RegCloseKey
(
propkey
);
buffer
[
38
]
=
0
;
CLSIDFromString
(
buffer
,
&
key
->
fmtid
);
key
->
pid
=
atoiW
(
&
buffer
[
39
]
);
key
->
pid
=
wcstol
(
&
buffer
[
39
],
NULL
,
10
);
return
S_OK
;
}
...
...
dlls/mmdevapi/main.c
View file @
eae787f9
...
...
@@ -17,16 +17,12 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "config.h"
#include "wine/port.h"
#include <stdarg.h>
#define COBJMACROS
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "wine/library.h"
#include "ole2.h"
#include "olectl.h"
...
...
@@ -44,7 +40,6 @@
#include "mmdevapi.h"
#include "wine/debug.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
mmdevapi
);
...
...
@@ -139,7 +134,7 @@ static BOOL WINAPI init_driver(INIT_ONCE *once, void *param, void **context)
TRACE
(
"Loading driver list %s
\n
"
,
wine_dbgstr_w
(
driver_list
));
for
(
next
=
p
=
driver_list
;
next
;
p
=
next
+
1
){
next
=
strchrW
(
p
,
','
);
next
=
wcschr
(
p
,
','
);
if
(
next
)
*
next
=
'\0'
;
...
...
dlls/mmdevapi/mmdevapi.h
View file @
eae787f9
...
...
@@ -16,10 +16,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef __WINE_CONFIG_H
# error You must include config.h to use this header
#endif
extern
HRESULT
MMDevEnum_Create
(
REFIID
riid
,
void
**
ppv
)
DECLSPEC_HIDDEN
;
extern
void
MMDevEnum_Free
(
void
)
DECLSPEC_HIDDEN
;
...
...
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