Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
b62abc1a
Commit
b62abc1a
authored
May 02, 2023
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 03, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Fix subauthority count check in RtlInitializeSid().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
af65fa04
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
sec.c
dlls/ntdll/sec.c
+1
-1
rtl.c
dlls/ntdll/tests/rtl.c
+0
-1
No files found.
dlls/ntdll/sec.c
View file @
b62abc1a
...
...
@@ -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
;
...
...
dlls/ntdll/tests/rtl.c
View file @
b62abc1a
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment