Initialize buffer reference count.
This commit is contained in:
parent
61cbe6672a
commit
58fe9f1fc0
|
@ -1107,6 +1107,7 @@ HRESULT WINAPI IDirectSoundBufferImpl_Create(
|
|||
*pdsb = NULL;
|
||||
return DSERR_OUTOFMEMORY;
|
||||
}
|
||||
dsb->buffer->ref = 1;
|
||||
}
|
||||
|
||||
/* Allocate the hardware buffer */
|
||||
|
|
Loading…
Reference in New Issue