mirror of
https://github.com/momo5502/hypervisor.git
synced 2025-04-19 05:32:55 +00:00
Debug service start
This commit is contained in:
parent
35f18600b8
commit
046df34929
@ -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()
|
||||
|
@ -11,7 +11,7 @@ public:
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user