From 8c6a0f1b9d263da4a8dd766d06a44adc8fd652a1 Mon Sep 17 00:00:00 2001 From: xerox Date: Sat, 20 Jun 2020 04:04:24 +0000 Subject: [PATCH] Update loadup.hpp --- loadup.hpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/loadup.hpp b/loadup.hpp index db114d8..07865af 100644 --- a/loadup.hpp +++ b/loadup.hpp @@ -268,11 +268,10 @@ namespace driver const bool unload_drv = !reinterpret_cast(lp_nt_unload_drv)(&driver_reg_path_unicode); const auto image_path = util::get_service_image_path(service_name); - try { std::filesystem::remove(image_path); } - catch (std::exception& err) {} + const auto delete_image = std::filesystem::remove(image_path); const bool delete_reg = util::delete_service_entry(service_name); - return unload_drv && delete_reg; + return unload_drv && delete_reg && delete_reg; } return false; }