Skip to content

Commit

Permalink
Fix "error C6387" from #257 (#263)
Browse files Browse the repository at this point in the history
* Fix "error C6387" from #257

* Missing ')'
  • Loading branch information
nibanks authored Sep 29, 2022
1 parent 5f4caba commit 58f9a77
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/wil/result_macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -1311,7 +1311,10 @@ namespace wil
}
else if (!fetchedRtlDisownModuleHeapAllocation)
{
pfnRtlDisownModuleHeapAllocation = reinterpret_cast<decltype(pfnRtlDisownModuleHeapAllocation)>(::GetProcAddress(::GetModuleHandleW(L"ntdll.dll"), "RtlDisownModuleHeapAllocation"));
if (auto ntdllModule = ::GetModuleHandleW(L"ntdll.dll"))
{
pfnRtlDisownModuleHeapAllocation = reinterpret_cast<decltype(pfnRtlDisownModuleHeapAllocation)>(::GetProcAddress(ntdllModule, "RtlDisownModuleHeapAllocation"));
}
fetchedRtlDisownModuleHeapAllocation = true;

if (pfnRtlDisownModuleHeapAllocation)
Expand Down

0 comments on commit 58f9a77

Please sign in to comment.