OS (Windows): adds support for Embedded variant in OS detection

This commit is contained in:
李通洲
2026-05-12 22:41:36 +08:00
parent f71c0b0866
commit af7e2d47d1
+3 -1
View File
@@ -1,5 +1,4 @@
#include "os.h"
#include "common/library.h"
#include "common/stringUtils.h"
#include "common/windows/registry.h"
#include "common/windows/unicode.h"
@@ -56,6 +55,9 @@ void ffDetectOSImpl(FFOSResult* os) {
if (ffStrbufStartsWithS(&os->variant, "Server ")) {
ffStrbufAppendS(&os->name, " Server");
ffStrbufSubstrAfter(&os->variant, strlen(" Server") - 1);
} else if (ffStrbufStartsWithS(&os->variant, "Embedded ")) {
ffStrbufAppendS(&os->name, " Embedded");
ffStrbufSubstrAfter(&os->variant, strlen(" Embedded") - 1);
}
if (ffStrbufStartsWithIgnCaseS(&os->variant, "(TM) ")) {