winealsa.drv: When allocating opaque blobs for alsa, initialize them to zero.
This commit is contained in:
parent
1e4c17e5dd
commit
78e6287f71
|
@ -258,7 +258,7 @@ static HRESULT alsa_get_card_devices(snd_pcm_stream_t stream, WCHAR **ids, char
|
||||||
int err, device;
|
int err, device;
|
||||||
snd_pcm_info_t *info;
|
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)
|
if(!info)
|
||||||
return E_OUTOFMEMORY;
|
return E_OUTOFMEMORY;
|
||||||
|
|
||||||
|
@ -943,7 +943,7 @@ static HRESULT WINAPI AudioClient_Initialize(IAudioClient *iface,
|
||||||
goto exit;
|
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){
|
if(!sw_params){
|
||||||
hr = E_OUTOFMEMORY;
|
hr = E_OUTOFMEMORY;
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -1364,7 +1364,7 @@ static HRESULT WINAPI AudioClient_GetMixFormat(IAudioClient *iface,
|
||||||
if(!fmt)
|
if(!fmt)
|
||||||
return E_OUTOFMEMORY;
|
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){
|
if(!formats){
|
||||||
CoTaskMemFree(fmt);
|
CoTaskMemFree(fmt);
|
||||||
return E_OUTOFMEMORY;
|
return E_OUTOFMEMORY;
|
||||||
|
|
Loading…
Reference in New Issue