diff --git a/dlls/winmm/wineoss/audio.c b/dlls/winmm/wineoss/audio.c index 7aee153f696..06a69c0cbb2 100644 --- a/dlls/winmm/wineoss/audio.c +++ b/dlls/winmm/wineoss/audio.c @@ -2803,8 +2803,6 @@ static DWORD CALLBACK widRecorder(LPVOID pmt) } break; case WINE_WM_STOPPING: - wwi->state = WINE_WS_STOPPED; - wwi->dwTotalRecorded = 0; if (wwi->state != WINE_WS_STOPPED) { if (wwi->ossdev->bTriggerSupport) @@ -2829,6 +2827,7 @@ static DWORD CALLBACK widRecorder(LPVOID pmt) wwi->lpQueuePtr = lpNext; } } + wwi->state = WINE_WS_STOPPED; SetEvent(ev); break; case WINE_WM_RESETTING: