mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-26 19:33:31 +00:00
[SHCORE] IsOS(OS_XPORGREATER) should return TRUE on NT 6.0+ (#9196)
CORE-20577 Even though the official documentation[^1] says `IsOS(OS_XPORGREATER)` always returns FALSE, the tests show otherwise and there are application compatibility issues otherwise. [^1]: https://learn.microsoft.com/en-us/windows/win32/api/shlwapi/nf-shlwapi-isos
This commit is contained in:
@@ -2464,7 +2464,11 @@ BOOL WINAPI IsOS(DWORD feature)
|
||||
case OS_MEORGREATER:
|
||||
ISOS_RETURN(platform == VER_PLATFORM_WIN32_WINDOWS && minorv >= 90);
|
||||
case OS_XPORGREATER:
|
||||
#ifdef __REACTOS__
|
||||
ISOS_RETURN(platform == VER_PLATFORM_WIN32_NT && ((majorv >= 5 && minorv >= 1) || majorv >= 6));
|
||||
#else
|
||||
ISOS_RETURN(platform == VER_PLATFORM_WIN32_NT && majorv >= 5 && minorv >= 1);
|
||||
#endif /* __REACTOS__ */
|
||||
case OS_HOME:
|
||||
ISOS_RETURN(platform == VER_PLATFORM_WIN32_NT && majorv >= 5 && minorv >= 1);
|
||||
case OS_PROFESSIONAL:
|
||||
|
||||
Reference in New Issue
Block a user