Skip to content

Commit

Permalink
Merge pull request #2039 from mihaibuzgau/master
Browse files Browse the repository at this point in the history
  • Loading branch information
Gheorghe Popescu authored Aug 21, 2020
2 parents a6ed0b6 + 451ee42 commit 914d923
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/src/facts/windows/kernel_resolver.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ namespace facter { namespace facts { namespace windows {

static boost::optional<string> 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<RtlGetVersionPtr>(
ntoskrnl.find_symbol("RtlGetVersion"));
ntdll.find_symbol("RtlGetVersion"));
if (! rtlGetVersion) {
return boost::none;
}
Expand Down

0 comments on commit 914d923

Please sign in to comment.