[*] Dumbdumb moment

This commit is contained in:
Reece Wilson 2022-05-28 17:21:57 +01:00
parent 77c74f886b
commit 5bafce075a

View File

@ -27,7 +27,9 @@ namespace Aurora::SWInfo
static bool IsWindowsVersionOrGreater(AuUInt8 major, AuUInt8 minor, AuUInt16 sp)
{
auto &info = GetPlatformInfo();
return info.ePlatform == Build::EPlatform::ePlatformWin32 && info.uKernelMajor >= major && info.uKernelMinor >= minor && info.uUserlandMinor >= sp;
return info.ePlatform == Build::EPlatform::ePlatformWin32 &&
(info.uKernelMajor > major || (info.uKernelMajor == major && info.uKernelMinor >= minor)) &&
((info.uKernelMajor == major && info.uKernelMinor == minor) ? info.uUserlandMinor >= sp : true);
}
AUKN_SYM bool IsWindowsXPOrGreater()