mirror of
https://github.com/reactos/reactos.git
synced 2026-06-08 17:02:56 +08:00
[NTOS:SE] Fix always-true assert in SeTokenCanImpersonate.
Courtesy of VS analysis warning C6289: Incorrect operator: mutual exclusion over || is always a non-zero constant. Did you intend to use && instead?
This commit is contained in:
@@ -3585,7 +3585,7 @@ SeTokenCanImpersonate(
|
||||
* allow impersonation. If we get such levels from the call
|
||||
* then something's seriously wrong.
|
||||
*/
|
||||
ASSERT(ImpersonationLevel != SecurityAnonymous ||
|
||||
ASSERT(ImpersonationLevel != SecurityAnonymous &&
|
||||
ImpersonationLevel != SecurityIdentification);
|
||||
|
||||
/* Time to lock our tokens */
|
||||
|
||||
Reference in New Issue
Block a user