Skip to content

Commit

Permalink
OrcLib: add default directory for extension libs
Browse files Browse the repository at this point in the history
  • Loading branch information
jgautier-anssi authored and fabienfl-orc committed Nov 9, 2020
1 parent ee6c571 commit b634bc7
Show file tree
Hide file tree
Showing 5 changed files with 211 additions and 123 deletions.
2 changes: 1 addition & 1 deletion src/OrcLib/DbgHelpLibrary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ using namespace Orc;
using namespace std::string_literals;

DbgHelpLibrary::DbgHelpLibrary()
: ExtensionLibrary(L"DbgHelp.dll"s, L"DBGHELP_X86DLL"s, L"DBGHELP_X64DLL"s, L""s)
: ExtensionLibrary(L"DbgHelp.dll"s, L"DBGHELP_X86DLL"s, L"DBGHELP_X64DLL"s)
{
m_strDesiredName = L"DbgHelp.dll"s;
}
Expand Down
2 changes: 1 addition & 1 deletion src/OrcLib/DiskExtent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ CDiskExtent CDiskExtent::ReOpen(DWORD dwDesiredAccess, DWORD dwShareMode, DWORD
ext.m_PhysicalSectorSize = m_PhysicalSectorSize;
ext.m_Start = m_Start;

const auto k32 = ExtensionLibrary::GetLibrary<Kernel32Extension>(true);
const auto k32 = ExtensionLibrary::GetLibrary<Kernel32Extension>();

if (k32 != nullptr)
{
Expand Down
Loading

0 comments on commit b634bc7

Please sign in to comment.