msacm32/tests: msacm32 can enumerate drivers that cannot be loaded or have their details queried. Deal with this properly.

This commit is contained in:
Aric Stewart 2009-08-21 09:22:56 -05:00 committed by Alexandre Julliard
parent 157c1629c1
commit bfe83b22c2

View file

@ -94,7 +94,7 @@ static BOOL CALLBACK DriverEnumProc(HACMDRIVERID hadid,
/* MSDN says this should fail but it doesn't in practice */
dd.cbStruct = 4;
rc = acmDriverDetails(hadid, &dd, 0);
ok(rc == MMSYSERR_NOERROR,
ok(rc == MMSYSERR_NOERROR || rc == MMSYSERR_NOTSUPPORTED,
"acmDriverDetails(): rc = %08x, should be %08x\n",
rc, MMSYSERR_NOERROR);
@ -119,7 +119,7 @@ static BOOL CALLBACK DriverEnumProc(HACMDRIVERID hadid,
/* try valid parameters */
rc = acmDriverDetails(hadid, &dd, 0);
ok(rc == MMSYSERR_NOERROR,
ok(rc == MMSYSERR_NOERROR || rc == MMSYSERR_NOTSUPPORTED,
"acmDriverDetails(): rc = %08x, should be %08x\n",
rc, MMSYSERR_NOERROR);
@ -210,7 +210,7 @@ static BOOL CALLBACK DriverEnumProc(HACMDRIVERID hadid,
/* try valid parameters */
rc = acmDriverOpen(&had, hadid, 0);
ok(rc == MMSYSERR_NOERROR,
ok(rc == MMSYSERR_NOERROR || rc == MMSYSERR_NODRIVER,
"acmDriverOpen(): rc = %08x, should be %08x\n",
rc, MMSYSERR_NOERROR);