]> sourceware.org Git - newlib-cygwin.git/blobdiff - winsup/cygwin/syscalls.cc
* syscalls.cc (gethostid): Use correct path to ProductId registry value.
[newlib-cygwin.git] / winsup / cygwin / syscalls.cc
index 190d1d68f93cafd8fa87ec6c606a4706be9c03ed..eeb998aaf6a839b0da84f7656c325d3961e80ba8 100644 (file)
@@ -3772,7 +3772,8 @@ long gethostid (void)
       debug_printf ("no Ethernet card installed");
     }
 
-  reg_key key (HKEY_LOCAL_MACHINE, KEY_READ, "SOFTWARE", "Microsoft", "Windows", "CurrentVersion", NULL);
+  reg_key key (HKEY_LOCAL_MACHINE, KEY_READ, "SOFTWARE", "Microsoft",
+              "Windows NT", "CurrentVersion", NULL);
   key.get_string ("ProductId", (char *)&data[6], 24, "00000-000-0000000-00000");
   debug_printf ("Windows Product ID: %s", (char *)&data[6]);
 
This page took 0.022652 seconds and 5 git commands to generate.