mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-12 10:22:12 +02:00
OS: fix Windows 7 detection
This commit is contained in:
@@ -26,6 +26,7 @@ void ffDetectOSImpl(FFOSResult* os, const FFinstance* instance)
|
||||
if(FFWmiRecord record = query.next())
|
||||
{
|
||||
record.getString(L"Caption", &os->variant);
|
||||
ffStrbufTrimRight(&os->variant, ' ');
|
||||
if(ffStrbufStartsWithS(&os->variant, "Microsoft Windows "))
|
||||
{
|
||||
ffStrbufAppendS(&os->name, "Microsoft Windows");
|
||||
|
||||
Reference in New Issue
Block a user