return false if info is NULL inside retro_load_game

This commit is contained in:
orbea 2017-01-24 14:15:22 -08:00
parent d9d1d79b63
commit 2106af8e25

View File

@ -540,6 +540,9 @@ static unsigned pow2ceil(unsigned n) {
bool retro_load_game(const struct retro_game_info *info) bool retro_load_game(const struct retro_game_info *info)
{ {
if (!info)
return false;
bool can_dupe = false; bool can_dupe = false;
environ_cb(RETRO_ENVIRONMENT_GET_CAN_DUPE, &can_dupe); environ_cb(RETRO_ENVIRONMENT_GET_CAN_DUPE, &can_dupe);
if (!can_dupe) if (!can_dupe)