dsound: Don't use HEAP_ZERO_MEMORY when we're about to overwrite the buffer.
This commit is contained in:
parent
4dc8987112
commit
f85a7b16ca
|
@ -118,7 +118,7 @@ static HRESULT WINAPI IDirectSoundNotifyImpl_SetNotificationPositions(
|
||||||
/* Make an internal copy of the caller-supplied array.
|
/* Make an internal copy of the caller-supplied array.
|
||||||
* Replace the existing copy if one is already present. */
|
* Replace the existing copy if one is already present. */
|
||||||
HeapFree(GetProcessHeap(), 0, This->dsb->notifies);
|
HeapFree(GetProcessHeap(), 0, This->dsb->notifies);
|
||||||
This->dsb->notifies = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
|
This->dsb->notifies = HeapAlloc(GetProcessHeap(), 0,
|
||||||
howmuch * sizeof(DSBPOSITIONNOTIFY));
|
howmuch * sizeof(DSBPOSITIONNOTIFY));
|
||||||
|
|
||||||
if (This->dsb->notifies == NULL) {
|
if (This->dsb->notifies == NULL) {
|
||||||
|
|
Loading…
Reference in New Issue