* net.cc (getdomainname): Fix registry key for 9x systems, too.

This commit is contained in:
Corinna Vinschen 2002-01-29 13:39:41 +00:00
parent 94ee02fa05
commit 562d97451a
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2002-01-29 Corinna Vinschen <corinna@vinschen.de>
* net.cc (getdomainname): Fix registry key for 9x systems, too.
2002-01-29 Corinna Vinschen <corinna@vinschen.de>
* net.cc (getdomainname): Fix registry key for NT systems.

View File

@ -1628,8 +1628,8 @@ getdomainname (char *domain, int len)
reg_key r (HKEY_LOCAL_MACHINE, KEY_READ,
(!wincap.is_winnt ()) ? "System" : "SYSTEM",
"CurrentControlSet", "Services",
(!wincap.is_winnt ()) ? "MSTCP" : "Tcpip",
(!wincap.is_winnt ()) ? NULL : "Parameters",
(!wincap.is_winnt ()) ? "VxD" : "Tcpip",
(!wincap.is_winnt ()) ? "MSTCP" : "Parameters",
NULL);
/* FIXME: Are registry keys case sensitive? */