diff --git a/include/freerdp/utils/ringbuffer.h b/include/freerdp/utils/ringbuffer.h index 099ba8ba1..1ec00c514 100644 --- a/include/freerdp/utils/ringbuffer.h +++ b/include/freerdp/utils/ringbuffer.h @@ -76,7 +76,7 @@ size_t ringbuffer_capacity(const RingBuffer *ringbuffer); * @param sz the size of the data to add * @return if the operation was successful, it could fail in case of OOM during realloc() */ -BOOL ringbuffer_write(RingBuffer *rb, const void *ptr, size_t sz); +BOOL ringbuffer_write(RingBuffer *rb, const BYTE *ptr, size_t sz); /** ensures that we have sz bytes available at the write head, and return a pointer diff --git a/libfreerdp/utils/ringbuffer.c b/libfreerdp/utils/ringbuffer.c index 1611490dc..07e770164 100644 --- a/libfreerdp/utils/ringbuffer.c +++ b/libfreerdp/utils/ringbuffer.c @@ -131,7 +131,7 @@ static BOOL ringbuffer_realloc(RingBuffer *rb, size_t targetSize) * @param sz * @return */ -BOOL ringbuffer_write(RingBuffer *rb, const void *ptr, size_t sz) +BOOL ringbuffer_write(RingBuffer *rb, const BYTE *ptr, size_t sz) { size_t toWrite; size_t remaining;