should go lie down...

This commit is contained in:
Kyle Sanderson 2019-07-21 09:10:40 -07:00
parent e9f0149463
commit d32511d83e

View File

@ -285,18 +285,24 @@ public:
~AutoHandleIdentLocker()
{
if (this->pSecurity)
this->pSecurity->access[HandleAccess_Delete] &= ~HANDLE_RESTRICT_IDENTEXCLUSIVE;
this->pSecurity = nullptr;
this->Nuke();
}
public:
AutoHandleIdentLocker &operator =(const AutoHandleIdentLocker &other)
{
~AutoHandleIdentLocker();
this->Nuke();
this->pSecurity = other.pSecurity;
}
private:
void Nuke(void)
{
if (this->pSecurity)
{
this->pSecurity->access[HandleAccess_Delete] &= ~HANDLE_RESTRICT_IDENTEXCLUSIVE;
this->pSecurity = nullptr;
}
}
private:
HandleAccess *pSecurity;
}