mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-02 00:44:12 +08:00
mdbx-windows: use MachineGuid
of any size for bootid
generation.
This commit is contained in:
parent
e7336e1d5e
commit
7759e52850
@ -2266,7 +2266,7 @@ __cold MDBX_INTERNAL_FUNC bin128_t mdbx_osal_bootid(void) {
|
|||||||
if (mdbx_RegGetValue(HKEY_LOCAL_MACHINE, HKLM_MicrosoftCryptography,
|
if (mdbx_RegGetValue(HKEY_LOCAL_MACHINE, HKLM_MicrosoftCryptography,
|
||||||
"MachineGuid", &buf.MachineGuid,
|
"MachineGuid", &buf.MachineGuid,
|
||||||
&len) == ERROR_SUCCESS &&
|
&len) == ERROR_SUCCESS &&
|
||||||
len > 42 && len < sizeof(buf))
|
len < sizeof(buf))
|
||||||
got_machineid = bootid_parse_uuid(&bin, &buf.MachineGuid, len);
|
got_machineid = bootid_parse_uuid(&bin, &buf.MachineGuid, len);
|
||||||
|
|
||||||
if (!got_machineid) {
|
if (!got_machineid) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user