Fix ringbuffer_write() to use const BYTE * instead of const void *
Fixed invalid declaration and missing argument