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>
oldstable
Sebastian Lackner 2016-10-27 16:45:00 +02:00 committed by Alexandre Julliard
parent 74a79a7722
commit b22aa57ab9
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}