summaryrefslogtreecommitdiffstats
path: root/winsup/w32api/include/ntdef.h
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/w32api/include/ntdef.h')
-rw-r--r--winsup/w32api/include/ntdef.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/winsup/w32api/include/ntdef.h b/winsup/w32api/include/ntdef.h
index a192a78d7..f4f990747 100644
--- a/winsup/w32api/include/ntdef.h
+++ b/winsup/w32api/include/ntdef.h
@@ -9,15 +9,17 @@
#define OBJ_OPENLINK 256L
#define OBJ_VALID_ATTRIBUTES 498L
#define InitializeObjectAttributes(p,n,a,r,s) { \
- (p)->Length = sizeof( OBJECT_ATTRIBUTES ); \
- (p)->RootDirectory = r; \
- (p)->Attributes = a; \
- (p)->ObjectName = n; \
- (p)->SecurityDescriptor = s; \
+ (p)->Length = sizeof(OBJECT_ATTRIBUTES); \
+ (p)->RootDirectory = (r); \
+ (p)->Attributes = (a); \
+ (p)->ObjectName = (n); \
+ (p)->SecurityDescriptor = (s); \
(p)->SecurityQualityOfService = NULL; \
}
-#define STATUS_SUCCESS ((NTSTATUS)0)
+#ifndef NT_SUCCESS
#define NT_SUCCESS(x) ((x)>=0)
+#define STATUS_SUCCESS ((NTSTATUS)0)
+#endif
#if !defined(_NTSECAPI_H) && !defined(_SUBAUTH_H)
typedef LONG NTSTATUS, *PNTSTATUS;
typedef struct _UNICODE_STRING {
@@ -25,7 +27,7 @@ typedef struct _UNICODE_STRING {
USHORT MaximumLength;
PWSTR Buffer;
} UNICODE_STRING, *PUNICODE_STRING;
-typedef struct __STRING {
+typedef struct _STRING {
USHORT Length;
USHORT MaximumLength;
PCHAR Buffer;