mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
r2953: add NTSTATUS_TALLOC_CHECK(x)
metze
This commit is contained in:
parent
eff51fc623
commit
a2cc951720
@ -21,6 +21,10 @@
|
||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#define NTSTATUS_TALLOC_CHECK(x) do {\
|
||||
if (!(x)) return NT_STATUS_NO_MEMORY;\
|
||||
} while (0)
|
||||
|
||||
#define WERR_TALLOC_CHECK(x) do {\
|
||||
if (!(x)) return WERR_NOMEM;\
|
||||
} while (0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user