Commit 78e6287f authored by Dan Kegel's avatar Dan Kegel Committed by Alexandre Julliard

winealsa.drv: When allocating opaque blobs for alsa, initialize them to zero.

parent 1e4c17e5
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment