TerminalFont: fix Windows Terminal detection

This commit is contained in:
李通洲
2023-03-15 20:58:37 +08:00
parent f205982ae5
commit 0f3fa38c04
+1 -1
View File
@@ -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);