hidclass.sys: Only return new reports when reading data from ringbuffer.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de> Signed-off-by: Aric Stewart <aric@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
74a79a7722
commit
b22aa57ab9
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue