From 0f3fa38c04413406a9880e5e2408403d49bdbf70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Wed, 15 Mar 2023 20:58:37 +0800 Subject: [PATCH] TerminalFont: fix Windows Terminal detection --- src/detection/terminalfont/terminalfont.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detection/terminalfont/terminalfont.c b/src/detection/terminalfont/terminalfont.c index 2e502861a..dbb10a8b0 100644 --- a/src/detection/terminalfont/terminalfont.c +++ b/src/detection/terminalfont/terminalfont.c @@ -102,7 +102,7 @@ static const char* detectWTProfile(json_object* profile, FFstrbuf* name, double* static const char* detectFromWTImpl(const FFinstance* instance, FFstrbuf* content, FFstrbuf* name, double* size) { - if (ffJsonLoadLibrary(instance)) + if (!ffJsonLoadLibrary(instance)) return "Failed to load json-c library"; json_object* __attribute__((__cleanup__(wrapJsoncFree))) root = json_tokener_parse(content->chars);