Module: wine Branch: master Commit: 7b3ab79710d932e316da7fa6752c906f5a4d3b3d URL: http://source.winehq.org/git/wine.git/?a=commit;h=7b3ab79710d932e316da7fa675...
Author: Andrew Talbot andrew.talbot@talbotville.com Date: Sat May 10 16:25:26 2008 +0100
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 108636a..480e8a1 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 a7977d6..f445b4f 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");