From f85a7b16cab608ac1daa1881857a172d2cf29dd6 Mon Sep 17 00:00:00 2001 From: Ken Thomases Date: Mon, 2 Mar 2009 23:17:00 -0600 Subject: [PATCH] dsound: Don't use HEAP_ZERO_MEMORY when we're about to overwrite the buffer. --- dlls/dsound/buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/dsound/buffer.c b/dlls/dsound/buffer.c index 688ad7183a1..251c436d14a 100644 --- a/dlls/dsound/buffer.c +++ b/dlls/dsound/buffer.c @@ -118,7 +118,7 @@ static HRESULT WINAPI IDirectSoundNotifyImpl_SetNotificationPositions( /* Make an internal copy of the caller-supplied array. * Replace the existing copy if one is already present. */ HeapFree(GetProcessHeap(), 0, This->dsb->notifies); - This->dsb->notifies = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, + This->dsb->notifies = HeapAlloc(GetProcessHeap(), 0, howmuch * sizeof(DSBPOSITIONNOTIFY)); if (This->dsb->notifies == NULL) {