diff --git a/source/fileop.cpp b/source/fileop.cpp index 5b7efe8..b256a47 100644 --- a/source/fileop.cpp +++ b/source/fileop.cpp @@ -754,7 +754,7 @@ LoadSzFile(char * filepath, unsigned char * rbuffer) HaltParseThread(); file = fopen (filepath, "rb"); - if (file > 0) + if (file) { size = SzExtractFile(browserList[browser.selIndex].filenum, rbuffer); fclose (file);