mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
Mark NT_SUCCESS
with various applicable attributes (#20781)
This commit is contained in:
parent
756e2153d8
commit
63630b4287
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ void InitializeObjectAttributes(OBJECT_ATTRIBUTES* p, UNICODE_STRING* n,
|
|||
}
|
||||
}
|
||||
|
||||
bool NT_SUCCESS(int x) { return x >= 0; }
|
||||
pragma(inline, true) bool NT_SUCCESS(NTSTATUS x) @safe pure nothrow @nogc { return x >= 0; }
|
||||
|
||||
/* In MinGW, NTSTATUS, UNICODE_STRING, STRING and their associated pointer
|
||||
* type aliases are defined in ntdef.h, ntsecapi.h and subauth.h, each of
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue