Sebastian Lackner : hidclass.sys: Only return new reports when reading data from ringbuffer.

Alexandre Julliard julliard at winehq.org
Thu Oct 27 14:27:57 CDT 2016


Module: wine
Branch: master
Commit: b22aa57ab9d23adf2e9bc54aaa650aa1ee6f6f95
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b22aa57ab9d23adf2e9bc54aaa650aa1ee6f6f95

Author: Sebastian Lackner <sebastian at fds-team.de>
Date:   Thu Oct 27 16:45:00 2016 +0200

hidclass.sys: Only return new reports when reading data from ringbuffer.

Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
Signed-off-by: Aric Stewart <aric at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/hidclass.sys/buffer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/hidclass.sys/buffer.c b/dlls/hidclass.sys/buffer.c
index 14e83e4..0b29f97 100644
--- a/dlls/hidclass.sys/buffer.c
+++ b/dlls/hidclass.sys/buffer.c
@@ -170,7 +170,7 @@ UINT RingBuffer_AddPointer(struct ReportRingBuffer *ring)
         for( ;count < ring->pointer_alloc; count++)
             ring->pointers[count] = POINTER_UNUSED;
     }
-    ring->pointers[idx] = ring->start;
+    ring->pointers[idx] = ring->end;
     LeaveCriticalSection(&ring->lock);
     return idx;
 }




More information about the wine-cvs mailing list