Fix GetCaps host's var to initialize correctly
Verified with Burnout title, no longer output failure.
This commit is contained in:
parent
6611340c51
commit
f6c1992865
|
@ -3190,8 +3190,7 @@ HRESULT WINAPI XTL::EMUPATCH(IDirectSound_GetCaps)
|
||||||
LOG_FUNC_END;
|
LOG_FUNC_END;
|
||||||
|
|
||||||
// Get PC's DirectSound capabilities
|
// Get PC's DirectSound capabilities
|
||||||
DSCAPS DSCapsPC;
|
DSCAPS DSCapsPC = { sizeof(DSCAPS), 0 };
|
||||||
ZeroMemory(&DSCapsPC, sizeof(DSCAPS));
|
|
||||||
|
|
||||||
HRESULT hRet = g_pDSound8->GetCaps(&DSCapsPC);
|
HRESULT hRet = g_pDSound8->GetCaps(&DSCapsPC);
|
||||||
if (hRet != DS_OK) {
|
if (hRet != DS_OK) {
|
||||||
|
|
Loading…
Reference in New Issue