* wincap.cc (wincapc::init): Simplify W2K/XP case.

This commit is contained in:
Corinna Vinschen 2001-09-12 21:07:13 +00:00
parent 09dcaf6922
commit 4b081513cc
2 changed files with 7 additions and 8 deletions

View File

@ -1,3 +1,7 @@
Wed Sep 12 23:06:00 2001 Corinna Vinschen <corinna@vinschen.de>
* wincap.cc (wincapc::init): Simplify W2K/XP case.
Wed Sep 12 23:02:00 2001 Corinna Vinschen <corinna@vinschen.de> Wed Sep 12 23:02:00 2001 Corinna Vinschen <corinna@vinschen.de>
* wincap.cc (wincapc::init): Set os name to "NT" on XP, too. * wincap.cc (wincapc::init): Set os name to "NT" on XP, too.

View File

@ -402,16 +402,11 @@ wincapc::init ()
caps = &wincap_nt4sp4; caps = &wincap_nt4sp4;
break; break;
case 5: case 5:
os = "NT";
if (version.dwMinorVersion == 0) if (version.dwMinorVersion == 0)
{ caps = &wincap_2000;
os = "NT";
caps = &wincap_2000;
}
else else
{ caps = &wincap_xp;
os = "NT";
caps = &wincap_xp;
}
break; break;
default: default:
os = "??"; os = "??";