diff options
Diffstat (limited to 'source3/include/nt_status.h')
-rw-r--r-- | source3/include/nt_status.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/include/nt_status.h b/source3/include/nt_status.h index 968657ca44..471ac47927 100644 --- a/source3/include/nt_status.h +++ b/source3/include/nt_status.h @@ -66,6 +66,11 @@ typedef uint32 WERROR; }\ } while (0) +#define NT_STATUS_NOT_OK_RETURN(x) do { \ + if (!NT_STATUS_IS_OK(x)) {\ + return x;\ + }\ +} while (0) /* The top byte in an NTSTATUS code is used as a type field. * Windows only uses value 0xC0 as an indicator for an NT error |