dsound: Memory allocation sizes fix
Andrew Talbot
andrew.talbot at talbotville.com
Sat May 10 10:25:26 CDT 2008
Changelog:
dsound: Memory allocation sizes fix.
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");
More information about the wine-patches
mailing list