From 626e081cd1682649188ecca952638e44d73b1194 Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Mon, 30 Aug 2004 06:28:54 +0000 Subject: [PATCH] Display "ReactOS" instead of "Microsoft Windows NT" for the ROS builded version svn path=/trunk/; revision=10740 --- reactos/subsys/system/explorer/utility/utility.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/reactos/subsys/system/explorer/utility/utility.cpp b/reactos/subsys/system/explorer/utility/utility.cpp index b006b914066..1f91cb777fd 100644 --- a/reactos/subsys/system/explorer/utility/utility.cpp +++ b/reactos/subsys/system/explorer/utility/utility.cpp @@ -251,12 +251,16 @@ String get_windows_version_str() switch(osvi.dwPlatformId) { case VER_PLATFORM_WIN32_NT: +#ifdef _ROS_ // This work around can be removed if ReactOS gets a unique version number. + str = TEXT("ReactOS"); +#else if (osvi.dwMajorVersion <= 4) str = TEXT("Microsoft Windows NT"); else if (osvi.dwMajorVersion==5 && osvi.dwMinorVersion==0) str = TEXT("Microsoft Windows 2000"); else if (osvi.dwMajorVersion==5 && osvi.dwMinorVersion==1) str = TEXT("Microsoft Windows XP"); +#endif if (osvie_val) { if (osvi.wProductType == VER_NT_WORKSTATION) {