mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:13:56 +00:00
dsound: Memory allocation sizes fix.
This commit is contained in:
parent
aeb3ba2869
commit
7b3ab79710
2 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue