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
5a3fd972
Commit
5a3fd972
authored
May 03, 2023
by
Ake Rehnman
Committed by
Alexandre Julliard
May 03, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Fix RtlValidSecurityDescriptor() return value.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
b62abc1a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
19 deletions
+8
-19
security.c
dlls/kernelbase/security.c
+4
-1
sec.c
dlls/ntdll/sec.c
+3
-17
winternl.h
include/winternl.h
+1
-1
No files found.
dlls/kernelbase/security.c
View file @
5a3fd972
...
...
@@ -1105,7 +1105,10 @@ BOOL WINAPI InitializeSecurityDescriptor( PSECURITY_DESCRIPTOR descr, DWORD revi
*/
BOOL
WINAPI
IsValidSecurityDescriptor
(
PSECURITY_DESCRIPTOR
descr
)
{
return
set_ntstatus
(
RtlValidSecurityDescriptor
(
descr
));
if
(
!
RtlValidSecurityDescriptor
(
descr
))
return
set_ntstatus
(
STATUS_INVALID_SECURITY_DESCR
);
return
TRUE
;
}
/******************************************************************************
...
...
dlls/ntdll/sec.c
View file @
5a3fd972
...
...
@@ -534,25 +534,11 @@ NTSTATUS WINAPI RtlCopySecurityDescriptor(PSECURITY_DESCRIPTOR pSourceSD, PSECUR
/**************************************************************************
* RtlValidSecurityDescriptor [NTDLL.@]
*
* Determine if a SECURITY_DESCRIPTOR is valid.
*
* PARAMS
* SecurityDescriptor [I] Descriptor to check.
*
* RETURNS
* Success: STATUS_SUCCESS.
* Failure: STATUS_INVALID_SECURITY_DESCR or STATUS_UNKNOWN_REVISION.
*/
NTSTATUS
WINAPI
RtlValidSecurityDescriptor
(
PSECURITY_DESCRIPTOR
SecurityDescriptor
)
BOOLEAN
WINAPI
RtlValidSecurityDescriptor
(
PSECURITY_DESCRIPTOR
descriptor
)
{
if
(
!
SecurityDescriptor
)
return
STATUS_INVALID_SECURITY_DESCR
;
if
(
((
SECURITY_DESCRIPTOR
*
)
SecurityDescriptor
)
->
Revision
!=
SECURITY_DESCRIPTOR_REVISION
)
return
STATUS_UNKNOWN_REVISION
;
return
STATUS_SUCCESS
;
SECURITY_DESCRIPTOR
*
sd
=
descriptor
;
return
sd
&&
sd
->
Revision
==
SECURITY_DESCRIPTOR_REVISION
;
}
/**************************************************************************
...
...
include/winternl.h
View file @
5a3fd972
...
...
@@ -4763,7 +4763,7 @@ NTSYSAPI void WINAPI RtlUpperString(STRING *,const STRING *);
NTSYSAPI
void
WINAPI
RtlUserThreadStart
(
PRTL_THREAD_START_ROUTINE
,
void
*
);
NTSYSAPI
BOOLEAN
WINAPI
RtlValidAcl
(
PACL
);
NTSYSAPI
BOOLEAN
WINAPI
RtlValidRelativeSecurityDescriptor
(
PSECURITY_DESCRIPTOR
,
ULONG
,
SECURITY_INFORMATION
);
NTSYSAPI
NTSTATUS
WINAPI
RtlValidSecurityDescriptor
(
PSECURITY_DESCRIPTOR
);
NTSYSAPI
BOOLEAN
WINAPI
RtlValidSecurityDescriptor
(
PSECURITY_DESCRIPTOR
);
NTSYSAPI
BOOLEAN
WINAPI
RtlValidSid
(
PSID
);
NTSYSAPI
BOOLEAN
WINAPI
RtlValidateHeap
(
HANDLE
,
ULONG
,
LPCVOID
);
NTSYSAPI
NTSTATUS
WINAPI
RtlVerifyVersionInfo
(
const
RTL_OSVERSIONINFOEXW
*
,
DWORD
,
DWORDLONG
);
...
...
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