Commit f6502221 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

If given a bad device id waveOutGetDevCapsA is supposed to return

MMSYSERR_BADDEVICEID. Fixes a todo_wine in the winmm test.
parent caf31cee
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment