From 451ee4288c61c6185295b454339801b84b8242ef Mon Sep 17 00:00:00 2001 From: mihaibuzgau Date: Thu, 20 Aug 2020 18:27:01 +0300 Subject: [PATCH] (FACT-2751) use ntdll.dll instead of ntoskrnl.exe --- lib/src/facts/windows/kernel_resolver.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/src/facts/windows/kernel_resolver.cc b/lib/src/facts/windows/kernel_resolver.cc index d1eea92a0b..a1c867c56c 100644 --- a/lib/src/facts/windows/kernel_resolver.cc +++ b/lib/src/facts/windows/kernel_resolver.cc @@ -16,13 +16,13 @@ namespace facter { namespace facts { namespace windows { static boost::optional get_release() { - dynamic_library ntoskrnl; - if (! ntoskrnl.load("ntoskrnl.exe")) { + dynamic_library ntdll; + if (! ntdll.load("ntdll.dll")) { return boost::none; } auto rtlGetVersion = reinterpret_cast( - ntoskrnl.find_symbol("RtlGetVersion")); + ntdll.find_symbol("RtlGetVersion")); if (! rtlGetVersion) { return boost::none; }