handlesys: minor style clean.

This commit is contained in:
Kyle Sanderson 2019-07-21 12:11:47 -07:00
parent c28d9052a4
commit 155248a2a9
2 changed files with 4 additions and 5 deletions

View File

@ -1173,12 +1173,11 @@ HandleError HandleSystem::GetHandleAccess(Handle_t handle, HandleAccess *&pAcces
{ {
unsigned int index; unsigned int index;
QHandle *pHandle; QHandle *pHandle;
HandleError err;
IdentityToken_t *ident = NULL; IdentityToken_t *ident = NULL;
HandleError err = GetHandle(handle, ident, &pHandle, &index);
if ((err=GetHandle(handle, ident, &pHandle, &index)) != HandleError_None) if (err == HandleError_None)
return err; pAccess = &(pHandle->sec);
pAccess = &(pHandle->sec);
return err; return err;
} }

View File

@ -278,7 +278,7 @@ public:
if ((this->pSecurity->access[HandleAccess_Delete] & HANDLE_RESTRICT_IDENTEXCLUSIVE) == HANDLE_RESTRICT_IDENTEXCLUSIVE) if ((this->pSecurity->access[HandleAccess_Delete] & HANDLE_RESTRICT_IDENTEXCLUSIVE) == HANDLE_RESTRICT_IDENTEXCLUSIVE)
this->pSecurity = nullptr; this->pSecurity = nullptr;
else else
pSecurity->access[HandleAccess_Delete] |= HANDLE_RESTRICT_IDENTEXCLUSIVE; this->pSecurity->access[HandleAccess_Delete] |= HANDLE_RESTRICT_IDENTEXCLUSIVE;
} }
} }
} }