This commit is contained in:
twinaphex
2017-12-16 01:11:25 +01:00
parent 56b786df6c
commit 56e8cf3ed1
2 changed files with 4 additions and 4 deletions

View File

@@ -26,7 +26,7 @@
#include <stdint.h> #include <stdint.h>
#include <stddef.h> #include <stddef.h>
#include "../retro_common_api.h" #include <retro_common_api.h>
RETRO_BEGIN_DECLS RETRO_BEGIN_DECLS

View File

@@ -24,7 +24,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include "../include/streams/memory_stream.h" #include <streams/memory_stream.h>
static uint8_t* g_buffer = NULL; static uint8_t* g_buffer = NULL;
static size_t g_size = 0; static size_t g_size = 0;
@@ -98,7 +98,7 @@ size_t memstream_read(memstream_t *stream, void *data, size_t bytes)
if (!stream) if (!stream)
return 0; return 0;
avail = stream->size - stream->ptr; avail = stream->size - stream->ptr;
if (bytes > avail) if (bytes > avail)
bytes = avail; bytes = avail;
@@ -115,7 +115,7 @@ size_t memstream_write(memstream_t *stream, const void *data, size_t bytes)
if (!stream) if (!stream)
return 0; return 0;
avail = stream->size - stream->ptr; avail = stream->size - stream->ptr;
if (bytes > avail) if (bytes > avail)
bytes = avail; bytes = avail;