[*] Recrinkle enterprise flag on windows

This commit is contained in:
Reece Wilson 2022-03-16 19:50:04 +00:00
parent 672915cd55
commit dce47ee5cf

View File

@ -70,7 +70,7 @@ namespace Aurora::SWInfo
#if defined(AURORA_PLATFORM_WIN32)
osInfo.bIsServer = IsWindowsServer();
osInfo.bIsEnterprise = IsWindowsEnterpriseBranch();
osInfo.bIsEnterprise = osInfo.bIsServer;//IsWindowsEnterpriseBranch();
#else
osInfo.bIsServer = false;
osInfo.bIsEnterprise = false;
@ -119,6 +119,8 @@ namespace Aurora::SWInfo
}
#endif
osInfo.bIsEnterprise |= AuStringContains(gUserlandBrand, "nterprise");
if (gKernelString.empty())
{
gKernelString = fmt::format("Microsoft NT {}.{}.{}", osInfo.uKernelMajor, osInfo.uKernelMinor, osInfo.uKernelPatch);