diff --git a/xposed_service.cpp b/xposed_service.cpp index 23ee6554a..c28cc712b 100644 --- a/xposed_service.cpp +++ b/xposed_service.cpp @@ -765,7 +765,7 @@ status_t XposedService::readFile(const String16& filename16, int32_t offset, int status_t err = ferror(f); fclose(f); if (errormsg) *errormsg = formatToString16("%s during fseek() to offset %d for %s", strerror(err), offset, filename); - return ferror(f); + return err; } // Read the file