* syscalls.cc (gethostid): Use correct path to ProductId registry value.

This commit is contained in:
Corinna Vinschen 2010-09-28 07:54:52 +00:00
parent ce28ff6b82
commit 41c91ad68d
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2010-09-28 Corinna Vinschen <corinna@vinschen.de>
* syscalls.cc (gethostid): Use correct path to ProductId registry value.
2010-09-27 Corinna Vinschen <corinna@vinschen.de>
* mount.cc (fs_info::update): Remove erroneous NtClose on random handle

View 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]);