dsound: Don't use HEAP_ZERO_MEMORY when we're about to overwrite the buffer.

This commit is contained in:
Ken Thomases 2009-03-02 23:17:00 -06:00 committed by Alexandre Julliard
parent 4dc8987112
commit f85a7b16ca
1 changed files with 1 additions and 1 deletions

View File

@ -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) {