Merge pull request #65 from orbea/error

return false if info is NULL inside retro_load_game
This commit is contained in:
Twinaphex 2017-01-25 00:19:55 +01:00 committed by GitHub
commit f9592de718

View File

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