Update libretro-common files

This commit is contained in:
retro-wertz
2017-08-29 19:16:37 +08:00
parent 8c163bf0ed
commit b26b68244f
3 changed files with 12 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
/* Copyright (C) 2010-2016 The RetroArch team
/* Copyright (C) 2010-2017 The RetroArch team
*
* ---------------------------------------------------------------------------------------
* The following license statement only applies to this file (memory_stream.c).
@@ -24,7 +24,7 @@
#include <stdlib.h>
#include <string.h>
#include "../include/streams/memory_stream.h"
#include <streams/memory_stream.h>
static uint8_t* g_buffer = NULL;
static size_t g_size = 0;
@@ -41,7 +41,7 @@ struct memstream
static void memstream_update_pos(memstream_t *stream)
{
if (stream->ptr > stream->max_ptr)
if (stream && stream->ptr > stream->max_ptr)
stream->max_ptr = stream->ptr;
}