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
78e6287f
Commit
78e6287f
authored
Oct 13, 2011
by
Dan Kegel
Committed by
Alexandre Julliard
Oct 13, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winealsa.drv: When allocating opaque blobs for alsa, initialize them to zero.
parent
1e4c17e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
mmdevdrv.c
dlls/winealsa.drv/mmdevdrv.c
+3
-3
No files found.
dlls/winealsa.drv/mmdevdrv.c
View file @
78e6287f
...
...
@@ -258,7 +258,7 @@ static HRESULT alsa_get_card_devices(snd_pcm_stream_t stream, WCHAR **ids, char
int
err
,
device
;
snd_pcm_info_t
*
info
;
info
=
HeapAlloc
(
GetProcessHeap
(),
0
,
snd_pcm_info_sizeof
());
info
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
snd_pcm_info_sizeof
());
if
(
!
info
)
return
E_OUTOFMEMORY
;
...
...
@@ -943,7 +943,7 @@ static HRESULT WINAPI AudioClient_Initialize(IAudioClient *iface,
goto
exit
;
}
sw_params
=
HeapAlloc
(
GetProcessHeap
(),
0
,
snd_pcm_sw_params_sizeof
());
sw_params
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
snd_pcm_sw_params_sizeof
());
if
(
!
sw_params
){
hr
=
E_OUTOFMEMORY
;
goto
exit
;
...
...
@@ -1364,7 +1364,7 @@ static HRESULT WINAPI AudioClient_GetMixFormat(IAudioClient *iface,
if
(
!
fmt
)
return
E_OUTOFMEMORY
;
formats
=
HeapAlloc
(
GetProcessHeap
(),
0
,
snd_pcm_format_mask_sizeof
());
formats
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
snd_pcm_format_mask_sizeof
());
if
(
!
formats
){
CoTaskMemFree
(
fmt
);
return
E_OUTOFMEMORY
;
...
...
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