mirror of
https://github.com/es3n1n/defendnot.git
synced 2026-08-02 10:32:01 +00:00
feat(loader): check for wsc service before starting
This commit is contained in:
@@ -23,7 +23,7 @@ namespace native {
|
||||
|
||||
auto function = reinterpret_cast<Ty>(GetProcAddress(mod, function_name.data()));
|
||||
if (function == nullptr) {
|
||||
throw std::runtime_error(std::format("unable to obtain {} from {}", module_name, function_name));
|
||||
throw std::runtime_error(std::format("unable to obtain {} from {}", function_name, module_name));
|
||||
}
|
||||
return function;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user