Module: wine Branch: master Commit: 13e14f3b8ee93ac94cfe82950f827349cf225cec URL: http://source.winehq.org/git/wine.git/?a=commit;h=13e14f3b8ee93ac94cfe82950f...
Author: Gerald Pfeifer gerald@pfeifer.com Date: Sat May 23 22:17:08 2009 +0200
dsound: Clarify statement in DSOUND_capture_callback.
---
dlls/dsound/capture.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/dsound/capture.c b/dlls/dsound/capture.c index 2a8252f..312c90f 100644 --- a/dlls/dsound/capture.c +++ b/dlls/dsound/capture.c @@ -428,7 +428,7 @@ DSOUND_capture_callback(HWAVEIN hwi, UINT msg, DWORD_PTR dwUser, DWORD_PTR dw1, if (This->state == STATE_STARTING) This->state = STATE_CAPTURING; capture_CheckNotify(Moi, (DWORD_PTR)This->pwave[index].lpData - (DWORD_PTR)This->buffer, This->pwave[index].dwBufferLength); - This->index = (++This->index) % This->nrofpwaves; + This->index = (This->index + 1) % This->nrofpwaves; if ( (This->index == 0) && !(This->capture_buffer->flags & DSCBSTART_LOOPING) ) { TRACE("end of buffer\n"); This->state = STATE_STOPPED;