From 122f99b9c2b380ef043ba4651e8ab14b15b80929 Mon Sep 17 00:00:00 2001 From: Phillip Whelan Date: Thu, 18 Apr 2024 16:15:51 -0400 Subject: [PATCH] utils: attempt to fix retrieval of machine id on win32. Signed-off-by: Phillip Whelan --- src/flb_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flb_utils.c b/src/flb_utils.c index dedf18434ce..3761ad2cadc 100644 --- a/src/flb_utils.c +++ b/src/flb_utils.c @@ -1403,7 +1403,7 @@ int flb_utils_get_machine_id(char **out_id, size_t *out_size) status = RegOpenKeyEx(HKEY_LOCAL_MACHINE, TEXT("SOFTWARE\\Microsoft\\Cryptography"), 0, - KEY_QUERY_VALUE, + KEY_QUERY_VALUE|KEY_WOW64_64KEY, &hKey); if (status != ERROR_SUCCESS) {