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
f6e11d65
Commit
f6e11d65
authored
Apr 29, 2023
by
Ake Rehnman
Committed by
Alexandre Julliard
May 03, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Fix return value of RtlInitializeSid().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
0cc4a38a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
16 deletions
+5
-16
security.c
dlls/kernelbase/security.c
+1
-1
sec.c
dlls/ntdll/sec.c
+3
-14
winternl.h
include/winternl.h
+1
-1
No files found.
dlls/kernelbase/security.c
View file @
f6e11d65
...
@@ -411,7 +411,7 @@ BOOL WINAPI GetWindowsAccountDomainSid( PSID sid, PSID domain_sid, DWORD *size )
...
@@ -411,7 +411,7 @@ BOOL WINAPI GetWindowsAccountDomainSid( PSID sid, PSID domain_sid, DWORD *size )
*/
*/
BOOL
WINAPI
InitializeSid
(
PSID
sid
,
PSID_IDENTIFIER_AUTHORITY
auth
,
BYTE
count
)
BOOL
WINAPI
InitializeSid
(
PSID
sid
,
PSID_IDENTIFIER_AUTHORITY
auth
,
BYTE
count
)
{
{
return
RtlInitializeSid
(
sid
,
auth
,
count
);
return
set_ntstatus
(
RtlInitializeSid
(
sid
,
auth
,
count
)
);
}
}
/******************************************************************************
/******************************************************************************
...
...
dlls/ntdll/sec.c
View file @
f6e11d65
...
@@ -294,19 +294,8 @@ DWORD WINAPI RtlLengthSid(PSID pSid)
...
@@ -294,19 +294,8 @@ DWORD WINAPI RtlLengthSid(PSID pSid)
/**************************************************************************
/**************************************************************************
* RtlInitializeSid [NTDLL.@]
* RtlInitializeSid [NTDLL.@]
*
* Initialise a SID.
*
* PARAMS
* pSid [I] SID to initialise
* pIdentifierAuthority [I] Identifier Authority
* nSubAuthorityCount [I] Number of Sub Authorities
*
* RETURNS
* Success: TRUE. pSid is initialised with the details given.
* Failure: FALSE, if nSubAuthorityCount is >= SID_MAX_SUB_AUTHORITIES.
*/
*/
BOOL
WINAPI
RtlInitializeSid
(
NTSTATUS
WINAPI
RtlInitializeSid
(
PSID
pSid
,
PSID
pSid
,
PSID_IDENTIFIER_AUTHORITY
pIdentifierAuthority
,
PSID_IDENTIFIER_AUTHORITY
pIdentifierAuthority
,
BYTE
nSubAuthorityCount
)
BYTE
nSubAuthorityCount
)
...
@@ -315,7 +304,7 @@ BOOL WINAPI RtlInitializeSid(
...
@@ -315,7 +304,7 @@ BOOL WINAPI RtlInitializeSid(
SID
*
pisid
=
pSid
;
SID
*
pisid
=
pSid
;
if
(
nSubAuthorityCount
>=
SID_MAX_SUB_AUTHORITIES
)
if
(
nSubAuthorityCount
>=
SID_MAX_SUB_AUTHORITIES
)
return
FALSE
;
return
STATUS_INVALID_PARAMETER
;
pisid
->
Revision
=
SID_REVISION
;
pisid
->
Revision
=
SID_REVISION
;
pisid
->
SubAuthorityCount
=
nSubAuthorityCount
;
pisid
->
SubAuthorityCount
=
nSubAuthorityCount
;
...
@@ -325,7 +314,7 @@ BOOL WINAPI RtlInitializeSid(
...
@@ -325,7 +314,7 @@ BOOL WINAPI RtlInitializeSid(
for
(
i
=
0
;
i
<
nSubAuthorityCount
;
i
++
)
for
(
i
=
0
;
i
<
nSubAuthorityCount
;
i
++
)
*
RtlSubAuthoritySid
(
pSid
,
i
)
=
0
;
*
RtlSubAuthoritySid
(
pSid
,
i
)
=
0
;
return
TRUE
;
return
STATUS_SUCCESS
;
}
}
/**************************************************************************
/**************************************************************************
...
...
include/winternl.h
View file @
f6e11d65
...
@@ -4607,7 +4607,7 @@ NTSYSAPI NTSTATUS WINAPI RtlInitializeExtendedContext2(void*,ULONG,CONTEXT_EX**
...
@@ -4607,7 +4607,7 @@ NTSYSAPI NTSTATUS WINAPI RtlInitializeExtendedContext2(void*,ULONG,CONTEXT_EX**
NTSYSAPI
void
WINAPI
RtlInitializeHandleTable
(
ULONG
,
ULONG
,
RTL_HANDLE_TABLE
*
);
NTSYSAPI
void
WINAPI
RtlInitializeHandleTable
(
ULONG
,
ULONG
,
RTL_HANDLE_TABLE
*
);
NTSYSAPI
void
WINAPI
RtlInitializeResource
(
LPRTL_RWLOCK
);
NTSYSAPI
void
WINAPI
RtlInitializeResource
(
LPRTL_RWLOCK
);
NTSYSAPI
void
WINAPI
RtlInitializeSRWLock
(
RTL_SRWLOCK
*
);
NTSYSAPI
void
WINAPI
RtlInitializeSRWLock
(
RTL_SRWLOCK
*
);
NTSYSAPI
BOOL
WINAPI
RtlInitializeSid
(
PSID
,
PSID_IDENTIFIER_AUTHORITY
,
BYTE
);
NTSYSAPI
NTSTATUS
WINAPI
RtlInitializeSid
(
PSID
,
PSID_IDENTIFIER_AUTHORITY
,
BYTE
);
NTSYSAPI
NTSTATUS
WINAPI
RtlInt64ToUnicodeString
(
ULONGLONG
,
ULONG
,
UNICODE_STRING
*
);
NTSYSAPI
NTSTATUS
WINAPI
RtlInt64ToUnicodeString
(
ULONGLONG
,
ULONG
,
UNICODE_STRING
*
);
NTSYSAPI
NTSTATUS
WINAPI
RtlIntegerToChar
(
ULONG
,
ULONG
,
ULONG
,
PCHAR
);
NTSYSAPI
NTSTATUS
WINAPI
RtlIntegerToChar
(
ULONG
,
ULONG
,
ULONG
,
PCHAR
);
NTSYSAPI
NTSTATUS
WINAPI
RtlIntegerToUnicodeString
(
ULONG
,
ULONG
,
UNICODE_STRING
*
);
NTSYSAPI
NTSTATUS
WINAPI
RtlIntegerToUnicodeString
(
ULONG
,
ULONG
,
UNICODE_STRING
*
);
...
...
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