diff --git a/src/library/driver.cpp b/src/library/driver.cpp index 648ff33..2fe13a0 100644 --- a/src/library/driver.cpp +++ b/src/library/driver.cpp @@ -31,7 +31,10 @@ driver::driver(const std::filesystem::path& driver_file, const std::string& serv throw std::runtime_error("Unable to create service"); } - StartServiceA(this->service_, 0, nullptr); + if(!StartServiceA(this->service_, 0, nullptr)) + { + printf("Failed to start service: %d\n", GetLastError()); + } } driver::~driver() diff --git a/src/library/driver.hpp b/src/library/driver.hpp index 406b2b6..6b2292b 100644 --- a/src/library/driver.hpp +++ b/src/library/driver.hpp @@ -11,7 +11,7 @@ class driver driver(const driver&) = delete; driver& operator=(const driver&) = delete; - driver(driver&& obj) noexcept = default;; + driver(driver&& obj) noexcept = default; driver& operator=(driver&& obj) noexcept = default; operator bool() const