return 'false' if info is NULL (retro_load_game)

This commit is contained in:
twinaphex 2017-01-24 02:21:05 +01:00
parent 0f1d9501cf
commit 9f9a4288a3

View File

@ -1926,13 +1926,16 @@ void retro_cheat_set(unsigned index, bool enabled, const char *code)
bool retro_load_game(const struct retro_game_info *info)
{
int i;
const char *dir;
const char *dir = NULL;
#if defined(_WIN32)
char slash = '\\';
#else
char slash = '/';
#endif
if (!info)
return false;
extract_directory(g_rom_dir, info->path, sizeof(g_rom_dir));
extract_name(g_rom_name, info->path, sizeof(g_rom_name));