dsound: Memory allocation sizes fix.

This commit is contained in:
Andrew Talbot 2008-05-10 16:25:26 +01:00 committed by Alexandre Julliard
parent aeb3ba2869
commit 7b3ab79710
2 changed files with 2 additions and 2 deletions

View File

@ -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");

View File

@ -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");