From: Michael Stefaniuc <mstefani(a)winehq.org> Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=57575 --- dlls/dmsynth/synthsink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/dmsynth/synthsink.c b/dlls/dmsynth/synthsink.c index c0ac7871f9a..dd0066e828f 100644 --- a/dlls/dmsynth/synthsink.c +++ b/dlls/dmsynth/synthsink.c @@ -91,7 +91,7 @@ static HRESULT synth_sink_write_data(struct synth_sink *sink, IDirectSoundBuffer if (FAILED(hr = IDirectSoundBuffer_GetCurrentPosition(buffer, &play_pos, &write_pos))) return hr; - if (current_pos - play_pos <= write_pos - play_pos) + if (current_pos - play_pos < write_pos - play_pos) { ERR("Underrun detected, sink %p, play pos %#lx, write pos %#lx, current pos %#lx!\n", buffer, play_pos, write_pos, current_pos); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/7940