From 7759e52850ddd15166d6ebd5f77cd0001339b652 Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Mon, 19 Jul 2021 12:07:45 +0300 Subject: [PATCH] mdbx-windows: use `MachineGuid` of any size for `bootid` generation. --- src/osal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osal.c b/src/osal.c index 0bf90f18..f05beadc 100644 --- a/src/osal.c +++ b/src/osal.c @@ -2266,7 +2266,7 @@ __cold MDBX_INTERNAL_FUNC bin128_t mdbx_osal_bootid(void) { if (mdbx_RegGetValue(HKEY_LOCAL_MACHINE, HKLM_MicrosoftCryptography, "MachineGuid", &buf.MachineGuid, &len) == ERROR_SUCCESS && - len > 42 && len < sizeof(buf)) + len < sizeof(buf)) got_machineid = bootid_parse_uuid(&bin, &buf.MachineGuid, len); if (!got_machineid) {