From f684dac0fcacf4412a26bab3ca4f9aff985db6ee Mon Sep 17 00:00:00 2001 From: Matthew D'Asaro Date: Tue, 3 Jun 2008 19:41:20 -0700 Subject: [PATCH] mmio: Do not zero current file position whenever mmioSetBuffer is called. --- dlls/winmm/mmio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/winmm/mmio.c b/dlls/winmm/mmio.c index fb19bd46b39..c2df106e910 100644 --- a/dlls/winmm/mmio.c +++ b/dlls/winmm/mmio.c @@ -585,7 +585,7 @@ static MMRESULT MMIO_SetBuffer(WINE_MMIO* wm, void* pchBuffer, LONG cchBuffer, wm->info.pchNext = wm->info.pchBuffer; wm->info.pchEndRead = wm->info.pchBuffer; wm->info.pchEndWrite = wm->info.pchBuffer + cchBuffer; - wm->info.lBufOffset = 0; + wm->info.lBufOffset = wm->info.lDiskOffset; wm->bBufferLoaded = FALSE; return MMSYSERR_NOERROR;