[*] Amend error message fmt arg in Process.cpp

{*] Obvious linux build error
This commit is contained in:
Reece Wilson 2021-11-16 01:58:26 +00:00
parent d99c23d638
commit 63fab703cc

View File

@ -239,14 +239,14 @@ namespace Aurora::Process
auto handle = LoadLibraryW(Locale::ConvertFromUTF8(path).c_str());
if (handle == INVALID_HANDLE_VALUE)
{
SysPushErrorNested("Could't link dynamic library {}", handle);
SysPushErrorNested("Could't link dynamic library {}", path);
return {};
}
#else
auto handle = dlopen(path, RTLD_DEEPBIND);
if (handle != INVALID_HANDLE_VALUE)
auto handle = dlopen(path.c_str(), RTLD_DEEPBIND);
if (handle == nullptr)
{
SysPushErrorNested("Could't link dynamic library {}", handle);
SysPushErrorNested("Could't link dynamic library {}", path);
return {};
}
#endif