diff --git a/src/info/manifest.c b/src/info/manifest.c index fb59e5c34..3b965e373 100644 --- a/src/info/manifest.c +++ b/src/info/manifest.c @@ -498,7 +498,7 @@ manifestLoadCallback(void *callbackData, const String *section, const String *ke if (checksumPage != NULL) { file.checksumPage = true; - file.checksumPageError = varBool(checksumPage); + file.checksumPageError = !varBool(checksumPage); const Variant *checksumPageErrorList = kvGetDefault(fileKv, MANIFEST_KEY_CHECKSUM_PAGE_ERROR_VAR, NULL); @@ -1138,7 +1138,7 @@ manifestSaveCallback(void *callbackData, const String *sectionNext, InfoSave *in if (file->checksumPage) { - kvPut(fileKv, MANIFEST_KEY_CHECKSUM_PAGE_VAR, VARBOOL(file->checksumPageError)); + kvPut(fileKv, MANIFEST_KEY_CHECKSUM_PAGE_VAR, VARBOOL(!file->checksumPageError)); if (file->checksumPageErrorList != NULL) kvPut(fileKv, MANIFEST_KEY_CHECKSUM_PAGE_ERROR_VAR, varNewVarLst(file->checksumPageErrorList));