Commit b22aa57a authored by Sebastian Lackner's avatar Sebastian Lackner Committed by Alexandre Julliard

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

parent 74a79a77
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment