Fixed no memory condition test in IDirectSoundImpl_Create.
This commit is contained in:
parent
a4d4d1979b
commit
342451b2dd
|
@ -787,7 +787,7 @@ HRESULT WINAPI IDirectSoundImpl_Create(
|
|||
|
||||
/* Allocate memory */
|
||||
pDS = HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,sizeof(IDirectSoundImpl));
|
||||
if (ppDS == NULL) {
|
||||
if (pDS == NULL) {
|
||||
WARN("out of memory\n");
|
||||
*ppDS = NULL;
|
||||
return DSERR_OUTOFMEMORY;
|
||||
|
|
Loading…
Reference in New Issue