Fix GetCaps host's var to initialize correctly

Verified with Burnout title, no longer output failure.
This commit is contained in:
RadWolfie 2018-04-17 19:45:52 -05:00
parent 6611340c51
commit f6c1992865
1 changed files with 1 additions and 2 deletions

View File

@ -3190,8 +3190,7 @@ HRESULT WINAPI XTL::EMUPATCH(IDirectSound_GetCaps)
LOG_FUNC_END;
// Get PC's DirectSound capabilities
DSCAPS DSCapsPC;
ZeroMemory(&DSCapsPC, sizeof(DSCAPS));
DSCAPS DSCapsPC = { sizeof(DSCAPS), 0 };
HRESULT hRet = g_pDSound8->GetCaps(&DSCapsPC);
if (hRet != DS_OK) {