Update loadup.hpp

master
xerox 4 years ago
parent a8d30d6bff
commit b5f2084899

@ -268,10 +268,11 @@ namespace driver
const bool unload_drv = !reinterpret_cast<nt_unload_driver_t>(lp_nt_unload_drv)(&driver_reg_path_unicode);
const auto image_path = util::get_service_image_path(service_name);
const bool delete_drv = std::filesystem::remove(image_path);
try { std::filesystem::remove(image_path); }
catch (std::exception& err) {}
const bool delete_reg = util::delete_service_entry(service_name);
return unload_drv && delete_drv && delete_reg;
return unload_drv && delete_reg;
}
return false;
}

Loading…
Cancel
Save