Fixed no memory condition test in IDirectSoundImpl_Create.

This commit is contained in:
Tomas Vanek 2004-12-07 14:23:46 +00:00 committed by Alexandre Julliard
parent a4d4d1979b
commit 342451b2dd
1 changed files with 1 additions and 1 deletions

View File

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