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
a28736df
Commit
a28736df
authored
Aug 07, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Aug 08, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Add NTSTATUS severity macros.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e1448751
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
sec.c
dlls/ntdll/sec.c
+2
-4
ntdef.h
include/ntdef.h
+5
-0
No files found.
dlls/ntdll/sec.c
View file @
a28736df
...
...
@@ -43,8 +43,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
ntdll
);
#define NT_SUCCESS(status) (status == STATUS_SUCCESS)
#define SELF_RELATIVE_FIELD(sd,field) ((BYTE *)(sd) + ((SECURITY_DESCRIPTOR_RELATIVE *)(sd))->field)
/* helper function to retrieve active length of an ACL */
...
...
@@ -1521,7 +1519,7 @@ RtlAdjustPrivilege(ULONG Privilege,
&
TokenHandle
);
}
if
(
!
NT_SUCCESS
(
Status
)
)
if
(
Status
)
{
WARN
(
"Retrieving token handle failed (Status %x)
\n
"
,
Status
);
return
Status
;
...
...
@@ -1546,7 +1544,7 @@ RtlAdjustPrivilege(ULONG Privilege,
TRACE
(
"Failed to assign all privileges
\n
"
);
return
STATUS_PRIVILEGE_NOT_HELD
;
}
if
(
!
NT_SUCCESS
(
Status
)
)
if
(
Status
)
{
WARN
(
"NtAdjustPrivilegesToken() failed (Status %x)
\n
"
,
Status
);
return
Status
;
...
...
include/ntdef.h
View file @
a28736df
...
...
@@ -43,4 +43,9 @@ typedef enum _WAIT_TYPE {
}
#endif
#define NT_SUCCESS(status) (((NTSTATUS)(status)) >= 0)
#define NT_INFORMATION(status) ((((NTSTATUS)(status)) & 0xc0000000) == 0x40000000)
#define NT_WARNING(status) ((((NTSTATUS)(status)) & 0xc0000000) == 0x80000000)
#define NT_ERROR(status) ((((NTSTATUS)(status)) & 0xc0000000) == 0xc0000000)
#endif
/* _NTDEF_ */
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