Common (Windows): fixes Windows 11 detection code

This commit is contained in:
李通洲
2026-05-09 15:41:49 +08:00
parent f46aa316cb
commit 87d89130ad
+2 -1
View File
@@ -634,7 +634,8 @@ static inline bool ffIsWindows10OrGreater() {
}
static inline bool ffIsWindows11OrGreater() {
return ffIsWindows10OrGreater() && SharedUserData->NtBuildNumber >= 22000;
return SharedUserData->NtMajorVersion > 10 ||
(SharedUserData->NtMajorVersion == 10 && SharedUserData->NtBuildNumber >= 22000);
}
NTSYSAPI NTSTATUS NTAPI NtOpenProcessToken(