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
19ca8c7f
Commit
19ca8c7f
authored
Mar 24, 2021
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 24, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm: Use nameless unions.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Andrew Eikum
<
aeikum@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
55e83494
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
Makefile.in
dlls/winmm/Makefile.in
+1
-1
lolvldrv.c
dlls/winmm/lolvldrv.c
+2
-2
waveform.c
dlls/winmm/waveform.c
+3
-3
No files found.
dlls/winmm/Makefile.in
View file @
19ca8c7f
EXTRADEFS
=
-D_WINMM_
-DWINE_NO_NAMELESS_EXTENSION
EXTRADEFS
=
-D_WINMM_
MODULE
=
winmm.dll
IMPORTLIB
=
winmm
IMPORTS
=
uuid user32 advapi32 ole32 msacm32
...
...
dlls/winmm/lolvldrv.c
View file @
19ca8c7f
...
...
@@ -532,10 +532,10 @@ static void MMDRV_Init(void)
goto
exit
;
}
size
=
WideCharToMultiByte
(
CP_ACP
,
0
,
pv
.
u
.
pwszVal
,
-
1
,
size
=
WideCharToMultiByte
(
CP_ACP
,
0
,
pv
.
pwszVal
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
drvA
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
WideCharToMultiByte
(
CP_ACP
,
0
,
pv
.
u
.
pwszVal
,
-
1
,
drvA
,
size
,
NULL
,
NULL
);
WideCharToMultiByte
(
CP_ACP
,
0
,
pv
.
pwszVal
,
-
1
,
drvA
,
size
,
NULL
,
NULL
);
MMDRV_Install
(
drvA
,
drvA
,
FALSE
);
...
...
dlls/winmm/waveform.c
View file @
19ca8c7f
...
...
@@ -422,7 +422,7 @@ static HRESULT WINMM_GetFriendlyName(IMMDevice *device, WCHAR *out,
return
hr
;
}
lstrcpynW
(
out
,
var
.
u
.
pwszVal
,
outlen
);
lstrcpynW
(
out
,
var
.
pwszVal
,
outlen
);
PropVariantClear
(
&
var
);
...
...
@@ -2368,7 +2368,7 @@ static LRESULT DRV_QueryDeviceInterface(WINMM_QueryInterfaceInfo *info)
return
MMSYSERR_ERROR
;
}
len_bytes
=
(
lstrlenW
(
pv
.
u
.
pwszVal
)
+
1
)
*
sizeof
(
WCHAR
);
len_bytes
=
(
lstrlenW
(
pv
.
pwszVal
)
+
1
)
*
sizeof
(
WCHAR
);
if
(
info
->
str
){
if
(
len_bytes
>
*
info
->
len_bytes
){
...
...
@@ -2378,7 +2378,7 @@ static LRESULT DRV_QueryDeviceInterface(WINMM_QueryInterfaceInfo *info)
return
MMSYSERR_INVALPARAM
;
}
memcpy
(
info
->
str
,
pv
.
u
.
pwszVal
,
len_bytes
);
memcpy
(
info
->
str
,
pv
.
pwszVal
,
len_bytes
);
}
else
*
info
->
len_bytes
=
len_bytes
;
...
...
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