libretro: Fix wrong file pointer

This commit is contained in:
retro-wertz 2018-06-04 18:03:33 +08:00
parent 8f6e5de50a
commit ff4f1235aa
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ bool utilIsGBImage(const char* file)
FILE *fp;
bool ret = false;
char buffer[47];
if (!file || !(fd = fopen (file, "r"))) //TODO more checks here (does file exist, is it a file, a symlink or a blockdevice)
if (!file || !(fp = fopen (file, "r"))) //TODO more checks here (does file exist, is it a file, a symlink or a blockdevice)
return ret;
fseek (fp, 0, SEEK_END);
if (ftell (fp) >= 0x8000) { //afaik there can be no gb-rom smaller than this