winmm/tests: Fix waveInGetPosition type.

We're comparing the reported value against dwBytesRecorded, so we should
request the value to be in bytes.
This commit is contained in:
Andrew Eikum 2013-07-26 14:17:03 -05:00 committed by Alexandre Julliard
parent fdf8ab11d9
commit 35e4aac8f6
1 changed files with 2 additions and 1 deletions

View File

@ -226,10 +226,11 @@ static void wave_in_test_deviceIn(int device, LPWAVEFORMATEX pwfx, DWORD format,
"frag.dwBytesRecorded=%d, should=%d\n",
frag.dwBytesRecorded,pwfx->nAvgBytesPerSec);
mmt.wType = TIME_SAMPLES;
mmt.wType = TIME_BYTES;
rc=waveInGetPosition(win, &mmt, sizeof(mmt));
ok(rc==MMSYSERR_NOERROR,"waveInGetPosition(%s): rc=%s\n",
dev_name(device),wave_in_error(rc));
ok(mmt.wType == TIME_BYTES, "doesn't support TIME_BYTES: %u\n", mmt.wType);
ok(mmt.u.cb == frag.dwBytesRecorded, "Got wrong position: %u\n", mmt.u.cb);
/* stop playing on error */