Commit 7b3ab797 authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

dsound: Memory allocation sizes fix.

parent aeb3ba28
......@@ -154,7 +154,7 @@ static HRESULT IDirectSoundNotifyImpl_Create(
IDirectSoundNotifyImpl * dsn;
TRACE("(%p,%p)\n",dsb,pdsn);
dsn = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(dsn));
dsn = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*dsn));
if (dsn == NULL) {
WARN("out of memory\n");
......
......@@ -748,7 +748,7 @@ static HRESULT IDirectSoundCaptureNotifyImpl_Create(
IDirectSoundCaptureNotifyImpl * dscn;
TRACE("(%p,%p)\n",dscb,pdscn);
dscn = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(dscn));
dscn = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*dscn));
if (dscn == NULL) {
WARN("out of memory\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment