OS (Linux): fix name detection for MX

Fix #847
This commit is contained in:
李通洲
2024-05-03 11:57:01 +08:00
parent 22d9d8e196
commit 8b838cef61
2 changed files with 12 additions and 8 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ static void buildOutputDefault(const FFOSResult* os, FFstrbuf* result)
ffStrbufAppend(result, &instance.state.platform.systemName);
//Append code name if it is missing
if(os->codename.length > 0 && !ffStrbufContain(result, &os->versionID))
if(os->codename.length > 0 && !ffStrbufContain(result, &os->codename))
{
ffStrbufAppendC(result, ' ');
ffStrbufAppend(result, &os->codename);