Fix the "._" check

This commit is contained in:
d0k3 2017-10-24 16:18:47 +02:00
parent ef9ba1a5a5
commit 770137ceb0

View File

@ -21,7 +21,7 @@ u64 IdentifyFileType(const char* path) {
// block crappy "._" files from getting recognized as filetype // block crappy "._" files from getting recognized as filetype
if (strncmp(fname, "._", 2)) return 0; if (strncmp(fname, "._", 2) == 0) return 0;
if (ext) ext++; if (ext) ext++;
if (FileGetData(path, header, 0x200, 0) < min(0x200, fsize)) return 0; if (FileGetData(path, header, 0x200, 0) < min(0x200, fsize)) return 0;