* syscalls.cc (gethostid): Use correct path to ProductId registry value.
This commit is contained in:
parent
ce28ff6b82
commit
41c91ad68d
@ -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>
|
2010-09-27 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* mount.cc (fs_info::update): Remove erroneous NtClose on random handle
|
* mount.cc (fs_info::update): Remove erroneous NtClose on random handle
|
||||||
|
@ -3772,7 +3772,8 @@ long gethostid (void)
|
|||||||
debug_printf ("no Ethernet card installed");
|
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");
|
key.get_string ("ProductId", (char *)&data[6], 24, "00000-000-0000000-00000");
|
||||||
debug_printf ("Windows Product ID: %s", (char *)&data[6]);
|
debug_printf ("Windows Product ID: %s", (char *)&data[6]);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user