dsound: Memory allocation sizes fix.
This commit is contained in:
parent
aeb3ba2869
commit
7b3ab79710
|
@ -154,7 +154,7 @@ static HRESULT IDirectSoundNotifyImpl_Create(
|
||||||
IDirectSoundNotifyImpl * dsn;
|
IDirectSoundNotifyImpl * dsn;
|
||||||
TRACE("(%p,%p)\n",dsb,pdsn);
|
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) {
|
if (dsn == NULL) {
|
||||||
WARN("out of memory\n");
|
WARN("out of memory\n");
|
||||||
|
|
|
@ -748,7 +748,7 @@ static HRESULT IDirectSoundCaptureNotifyImpl_Create(
|
||||||
IDirectSoundCaptureNotifyImpl * dscn;
|
IDirectSoundCaptureNotifyImpl * dscn;
|
||||||
TRACE("(%p,%p)\n",dscb,pdscn);
|
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) {
|
if (dscn == NULL) {
|
||||||
WARN("out of memory\n");
|
WARN("out of memory\n");
|
||||||
|
|
Loading…
Reference in New Issue