mirror of
https://github.com/momo5502/hypervisor.git
synced 2025-04-19 13:42:55 +00:00
Small fixes
This commit is contained in:
parent
da7204ee90
commit
a5dab1e9ba
@ -225,9 +225,6 @@ extern "C" NTSTATUS DriverEntry(const PDRIVER_OBJECT DriverObject, PUNICODE_STRI
|
||||
debug_log("Waking up!");
|
||||
}
|
||||
});
|
||||
|
||||
sleep_cb->dispatcher(sleep_callback::type::sleep);
|
||||
sleep_cb->dispatcher(sleep_callback::type::wakeup);
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
|
@ -53,7 +53,6 @@ void sleep_callback::dispatcher(const type type) const
|
||||
}
|
||||
|
||||
_Function_class_(CALLBACK_FUNCTION)
|
||||
|
||||
void sleep_callback::static_callback(void* context, void* argument1, void* argument2)
|
||||
{
|
||||
if (!context || argument1 != reinterpret_cast<PVOID>(PO_CB_SYSTEM_STATE_LOCK))
|
||||
|
@ -20,13 +20,12 @@ public:
|
||||
|
||||
sleep_callback(const sleep_callback& obj) = delete;
|
||||
sleep_callback& operator=(const sleep_callback& obj) = delete;
|
||||
void dispatcher(type type) const;
|
||||
|
||||
private:
|
||||
void* handle_{nullptr};
|
||||
callback_function callback_{};
|
||||
|
||||
|
||||
void dispatcher(type type) const;
|
||||
|
||||
_Function_class_(CALLBACK_FUNCTION)
|
||||
static void static_callback(void* context, void* argument1, void* argument2);
|
||||
|
Loading…
x
Reference in New Issue
Block a user