mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 04:24:47 +00:00
ntdll: Fix subauthority count check in RtlInitializeSid().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
parent
af65fa044a
commit
b62abc1a2c
|
@ -303,7 +303,7 @@ NTSTATUS WINAPI RtlInitializeSid(
|
|||
int i;
|
||||
SID* pisid=pSid;
|
||||
|
||||
if (nSubAuthorityCount >= SID_MAX_SUB_AUTHORITIES)
|
||||
if (nSubAuthorityCount > SID_MAX_SUB_AUTHORITIES)
|
||||
return STATUS_INVALID_PARAMETER;
|
||||
|
||||
pisid->Revision = SID_REVISION;
|
||||
|
|
|
@ -3619,7 +3619,6 @@ static void test_RtlInitializeSid(void)
|
|||
ok(!status, "Unexpected status %#lx.\n", status);
|
||||
|
||||
status = RtlInitializeSid(sid, &sid_ident, SID_MAX_SUB_AUTHORITIES);
|
||||
todo_wine
|
||||
ok(!status, "Unexpected status %#lx.\n", status);
|
||||
|
||||
status = RtlInitializeSid(sid, &sid_ident, SID_MAX_SUB_AUTHORITIES + 1);
|
||||
|
|
Loading…
Reference in a new issue