Ken Thomases : dsound: Don't use HEAP_ZERO_MEMORY when we' re about to overwrite the buffer.
Alexandre Julliard
julliard at winehq.org
Tue Mar 3 11:53:42 CST 2009
Module: wine
Branch: master
Commit: f85a7b16cab608ac1daa1881857a172d2cf29dd6
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f85a7b16cab608ac1daa1881857a172d2cf29dd6
Author: Ken Thomases <ken at codeweavers.com>
Date: Mon Mar 2 23:17:00 2009 -0600
dsound: Don't use HEAP_ZERO_MEMORY when we're about to overwrite the buffer.
---
dlls/dsound/buffer.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/dsound/buffer.c b/dlls/dsound/buffer.c
index 688ad71..251c436 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) {
More information about the wine-cvs
mailing list