From d623f0045ab0e51456991394f7fee4c70d508234 Mon Sep 17 00:00:00 2001 From: Gerald Pfeifer Date: Sat, 24 Apr 2010 23:04:20 +0200 Subject: [PATCH] winmm: Remove variables duration and samples which are not really used from check_position. --- dlls/winmm/tests/capture.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/dlls/winmm/tests/capture.c b/dlls/winmm/tests/capture.c index c46d35a64f4..81d62819cc4 100644 --- a/dlls/winmm/tests/capture.c +++ b/dlls/winmm/tests/capture.c @@ -54,14 +54,9 @@ static void check_position(int device, HWAVEIN win, DWORD bytes, LPWAVEFORMATEX pwfx ) { MMTIME mmtime; - DWORD samples; - double duration; MMRESULT rc; DWORD returned; - samples=bytes/(pwfx->wBitsPerSample/8*pwfx->nChannels); - duration=((double)samples)/pwfx->nSamplesPerSec; - mmtime.wType = TIME_BYTES; rc=waveInGetPosition(win, &mmtime, sizeof(mmtime)); ok(rc==MMSYSERR_NOERROR,