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; }