winpr: Fix definition of NTSTATUS_FROM_WIN32

This commit is contained in:
Martin Fleisz 2016-03-18 13:45:51 +01:00
parent 1c2d315354
commit 98528ea973

View File

@ -1272,7 +1272,7 @@
/* defined in ntstatus.h */
#if !defined(NTSTATUS_FROM_WIN32) && !defined(INLINE_NTSTATUS_FROM_WIN32)
INLINE NTSTATUS NTSTATUS_FROM_WIN32(long x)
static INLINE NTSTATUS NTSTATUS_FROM_WIN32(long x)
{
return x <= 0 ? (NTSTATUS)x : (NTSTATUS) (((x) & 0x0000FFFF) | (0x7 << 16) | 0xC0000000);
}