[NTOS:SE] Remove redundant ReturnLength NULL check
authorGeorge Bișoc <george.bisoc@reactos.org>
Mon, 13 Jun 2022 17:28:12 +0000 (19:28 +0200)
committerGeorge Bișoc <george.bisoc@reactos.org>
Mon, 13 Jun 2022 17:28:12 +0000 (19:28 +0200)
commit93381263a1f3bfffe70f72bd63944bdff62f93e8
tree2313b02a88ac3d10d64c93a3a89baa752781c7e6
parent2d1805504e9005b9fd8c849393931bf83c2fa2c2
[NTOS:SE] Remove redundant ReturnLength NULL check

In NtQueryInformationToken function, remove the useless and redundant NULL check for two primary reasons. First, DefaultQueryInfoBufferCheck already does the necessary probing validation checks and second, ReturnLength must NEVER be NULL!
If the caller does not respect the calling rules of NtQueryInformationToken, the caller is expected to be miserably punished.
ntoskrnl/se/tokencls.c