Skip to content

Commit

Permalink
Debug service start
Browse files Browse the repository at this point in the history
  • Loading branch information
momo5502 committed Dec 10, 2023
1 parent 35f1860 commit 046df34
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/library/driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion src/library/driver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 046df34

Please sign in to comment.