If given a bad device id waveOutGetDevCapsA is supposed to return
MMSYSERR_BADDEVICEID. Fixes a todo_wine in the winmm test.
This commit is contained in:
parent
caf31cee32
commit
f650222131
|
@ -55,11 +55,9 @@ void wave_out_tests()
|
|||
ndev=waveOutGetNumDevs();
|
||||
trace("found %d WaveOut devices\n",ndev);
|
||||
|
||||
todo_wine {
|
||||
rc=waveOutGetDevCapsA(ndev+1,&caps,sizeof(caps));
|
||||
ok(rc==MMSYSERR_BADDEVICEID,
|
||||
"waveOutGetDevCa psA: MMSYSERR_BADDEVICEID expected, got %d",rc);
|
||||
}
|
||||
rc=waveOutGetDevCapsA(ndev+1,&caps,sizeof(caps));
|
||||
ok(rc==MMSYSERR_BADDEVICEID,
|
||||
"waveOutGetDevCa psA: MMSYSERR_BADDEVICEID expected, got %d",rc);
|
||||
|
||||
format.wFormatTag=WAVE_FORMAT_PCM;
|
||||
format.nChannels=2;
|
||||
|
|
|
@ -2225,7 +2225,7 @@ UINT WINAPI waveOutGetDevCapsA(UINT uDeviceID, LPWAVEOUTCAPSA lpCaps,
|
|||
if (lpCaps == NULL) return MMSYSERR_INVALPARAM;
|
||||
|
||||
if ((wmld = MMDRV_Get((HANDLE)uDeviceID, MMDRV_WAVEOUT, TRUE)) == NULL)
|
||||
return MMSYSERR_INVALHANDLE;
|
||||
return MMSYSERR_BADDEVICEID;
|
||||
|
||||
return MMDRV_Message(wmld, WODM_GETDEVCAPS, (DWORD)lpCaps, uSize, TRUE);
|
||||
|
||||
|
|
Loading…
Reference in New Issue