Dan Kegel : winealsa.drv: When allocating opaque blobs for alsa, initialize them to zero.
Alexandre Julliard
julliard at winehq.org
Thu Oct 13 14:10:11 CDT 2011
Module: wine
Branch: master
Commit: 78e6287f71cca2b7dfb30cc0f1d2151f0f00da8d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=78e6287f71cca2b7dfb30cc0f1d2151f0f00da8d
Author: Dan Kegel <dank at kegel.com>
Date: Thu Oct 13 11:14:18 2011 -0700
winealsa.drv: When allocating opaque blobs for alsa, initialize them to zero.
---
dlls/winealsa.drv/mmdevdrv.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/winealsa.drv/mmdevdrv.c b/dlls/winealsa.drv/mmdevdrv.c
index 640b191..29c3f72 100644
--- a/dlls/winealsa.drv/mmdevdrv.c
+++ b/dlls/winealsa.drv/mmdevdrv.c
@@ -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;
More information about the wine-cvs
mailing list