diff --git a/audio/drivers/wasapi.c b/audio/drivers/wasapi.c index 0d20e6ffc5..c2479986d2 100644 --- a/audio/drivers/wasapi.c +++ b/audio/drivers/wasapi.c @@ -723,10 +723,7 @@ static ssize_t wasapi_write(void *wh, const void *data, size_t size) else ir = wasapi_write_sh(w, data + writen, size - writen); if (ir == -1) - { - writen = -1; - break; - } + return -1; } } else if (w->exclusive)