mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-14 19:45:39 +00:00
Call IDirectSound::Initialize() as per MSDN before using the
DirectSound object. Fixes a crash on Windows.
This commit is contained in:
parent
acb7207a9d
commit
4c64f9bdf9
|
@ -69,6 +69,9 @@ static void dsound_dsound_tests()
|
|||
if (rc==DS_OK)
|
||||
IDirectSound8_Release(ds8);
|
||||
|
||||
rc=IDirectSound_Initialize(dso,NULL);
|
||||
ok(rc==DS_OK,"IDirectSound_Initialize(NULL) failed: %s\n",DXGetErrorString9(rc));
|
||||
|
||||
/* DSOUND: Error: Invalid caps buffer */
|
||||
rc=IDirectSound_GetCaps(dso,0);
|
||||
ok(rc==DSERR_INVALIDPARAM,"GetCaps should have failed: %s\n",DXGetErrorString9(rc));
|
||||
|
@ -168,6 +171,9 @@ static void dsound_dsound8_tests()
|
|||
if (rc==DS_OK)
|
||||
IDirectSound8_Release(ds8);
|
||||
|
||||
rc=IDirectSound8_Initialize(dso,NULL);
|
||||
ok(rc==DS_OK,"IDirectSound_Initialize(NULL) failed: %s\n",DXGetErrorString9(rc));
|
||||
|
||||
/* DSOUND: Error: Invalid caps buffer */
|
||||
rc=IDirectSound8_GetCaps(dso,0);
|
||||
ok(rc==DSERR_INVALIDPARAM,"GetCaps should have failed: %s\n",DXGetErrorString9(rc));
|
||||
|
|
Loading…
Reference in a new issue