OS (Linux): prioritize prettyName over name

This commit is contained in:
Carter Li
2024-06-25 10:16:19 +08:00
committed by Carter Li
parent abd2522268
commit ecd69370ab
+3 -3
View File
@@ -12,10 +12,10 @@
static void buildOutputDefault(const FFOSResult* os, FFstrbuf* result)
{
//Create the basic output
if(os->name.length > 0)
ffStrbufAppend(result, &os->name);
else if(os->prettyName.length > 0)
if(os->prettyName.length > 0)
ffStrbufAppend(result, &os->prettyName);
else if(os->name.length > 0)
ffStrbufAppend(result, &os->name);
else if(os->id.length > 0)
ffStrbufAppend(result, &os->id);
else