diff --git a/dlls/wineesd.drv/audio.c b/dlls/wineesd.drv/audio.c index f7f190c32eb..8a3fc69a9f3 100644 --- a/dlls/wineesd.drv/audio.c +++ b/dlls/wineesd.drv/audio.c @@ -562,7 +562,7 @@ static int ESD_AddRingMessage(ESD_MSG_RING* mr, enum win_wm_message msg, DWORD p HANDLE hEvent = INVALID_HANDLE_VALUE; EnterCriticalSection(&mr->msg_crst); - if ((mr->msg_toget == ((mr->msg_tosave + 1) % mr->ring_buffer_size))) + if (mr->msg_toget == ((mr->msg_tosave + 1) % mr->ring_buffer_size)) { int old_ring_buffer_size = mr->ring_buffer_size; mr->ring_buffer_size += ESD_RING_BUFFER_INCREMENT; diff --git a/dlls/winenas.drv/audio.c b/dlls/winenas.drv/audio.c index 0c29e4802f3..a5768fa01f5 100644 --- a/dlls/winenas.drv/audio.c +++ b/dlls/winenas.drv/audio.c @@ -488,7 +488,7 @@ static int NAS_AddRingMessage(MSG_RING* mr, enum win_wm_message msg, DWORD param HANDLE hEvent = INVALID_HANDLE_VALUE; EnterCriticalSection(&mr->msg_crst); - if ((mr->msg_toget == ((mr->msg_tosave + 1) % mr->ring_buffer_size))) + if (mr->msg_toget == ((mr->msg_tosave + 1) % mr->ring_buffer_size)) { int old_ring_buffer_size = mr->ring_buffer_size; mr->ring_buffer_size += NAS_RING_BUFFER_INCREMENT;