mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 10:57:34 +00:00
Kernel: Assert if we try to initialize VMWareBackdoor more than once
This commit is contained in:
parent
02c9f4c951
commit
e9df6189f4
1 changed files with 1 additions and 0 deletions
|
@ -95,6 +95,7 @@ static bool detect_presence()
|
||||||
|
|
||||||
VMWareBackdoor* VMWareBackdoor::initialize()
|
VMWareBackdoor* VMWareBackdoor::initialize()
|
||||||
{
|
{
|
||||||
|
ASSERT(s_vmware_backdoor == nullptr);
|
||||||
if (!detect_presence())
|
if (!detect_presence())
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue