From 7b3ab79710d932e316da7fa6752c906f5a4d3b3d Mon Sep 17 00:00:00 2001 From: Andrew Talbot Date: Sat, 10 May 2008 16:25:26 +0100 Subject: [PATCH] dsound: Memory allocation sizes fix. --- dlls/dsound/buffer.c | 2 +- dlls/dsound/capture.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/dsound/buffer.c b/dlls/dsound/buffer.c index 108636a65e2..480e8a134de 100644 --- a/dlls/dsound/buffer.c +++ b/dlls/dsound/buffer.c @@ -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"); diff --git a/dlls/dsound/capture.c b/dlls/dsound/capture.c index a7977d67bf8..f445b4fb254 100644 --- a/dlls/dsound/capture.c +++ b/dlls/dsound/capture.c @@ -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");