[PATCH 1/2] winmm/tests: Fix waveInGetPosition type

Andrew Eikum aeikum at codeweavers.com
Fri Jul 26 14:17:03 CDT 2013


We're comparing the reported value against dwBytesRecorded, so we should
request the value to be in bytes.
---
 dlls/winmm/tests/capture.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/winmm/tests/capture.c b/dlls/winmm/tests/capture.c
index f904bb1..d3d60db 100644
--- a/dlls/winmm/tests/capture.c
+++ b/dlls/winmm/tests/capture.c
@@ -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 */
-- 
1.8.3.4





More information about the wine-patches mailing list