hidclass.sys: Do not return failure when trying to set same ringbuffer size.
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
115c69110d
commit
74a79a7722
|
@ -102,8 +102,10 @@ NTSTATUS RingBuffer_SetSize(struct ReportRingBuffer *ring, UINT size)
|
|||
BYTE* new_buffer;
|
||||
int i;
|
||||
|
||||
if (size < MIN_BUFFER_SIZE || size > MAX_BUFFER_SIZE || size == ring->size)
|
||||
if (size < MIN_BUFFER_SIZE || size > MAX_BUFFER_SIZE)
|
||||
return STATUS_INVALID_PARAMETER;
|
||||
if (size == ring->size)
|
||||
return STATUS_SUCCESS;
|
||||
|
||||
EnterCriticalSection(&ring->lock);
|
||||
ring->start = ring->end = 0;
|
||||
|
|
Loading…
Reference in New Issue