dmusic: use a previously unused variable.
This commit is contained in:
parent
3ba830446d
commit
fa7b5b05e2
|
@ -382,6 +382,11 @@ HRESULT WINAPI DMUSIC_CreateDirectMusicPortImpl (LPCGUID lpcGUID, LPVOID *ppobj,
|
|||
obj->pDirectSound = NULL;
|
||||
obj->pLatencyClock = NULL;
|
||||
hr = DMUSIC_CreateReferenceClockImpl(&IID_IReferenceClock, (LPVOID*)&obj->pLatencyClock, NULL);
|
||||
if(hr != S_OK)
|
||||
{
|
||||
HeapFree(GetProcessHeap(), 0, obj);
|
||||
return hr;
|
||||
}
|
||||
|
||||
if(0)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue