* cygcheck.cc (dump_sysinfo): Print more detailed OS information string.

This commit is contained in:
Corinna Vinschen 2001-11-09 17:18:36 +00:00
parent 4d1fdcb6f8
commit 9a6c0a241b
2 changed files with 25 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2001-11-09 Corinna Vinschen <corinna@vinschen.de>
* cygcheck.cc (dump_sysinfo): Print more detailed OS information string.
2001-11-04 Corinna Vinschen <corinna@vinschen.de>
* getfacl.c (username): New function.

View File

@ -750,10 +750,19 @@ dump_sysinfo ()
switch (osversion.dwMinorVersion)
{
case 0:
osname = (char *) "Win95";
if (strchr(osversion.szCSDVersion, 'C'))
osname = (char *) "Win95OSR2";
else
osname = (char *) "Win95";
break;
case 1:
osname = (char *) "Win98";
case 10:
if (strchr(osversion.szCSDVersion, 'A'))
osname = (char *) "Win98SE";
else
osname = (char *) "Win98";
break;
case 90:
osname = (char *) "WinME";
break;
default:
osname = (char *) "Win9X";
@ -761,7 +770,15 @@ dump_sysinfo ()
}
break;
case VER_PLATFORM_WIN32_NT:
osname = (char *) "WinNT";
if (osversion.dwMajorVersion == 5)
{
if (osversion.dwMinorVersion == 0)
osname = (char *) "Win2000";
else
osname = (char *) "WinXP";
}
else
osname = (char *) "WinNT";
break;
default:
osname = (char *) "uknown-os";