diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-11-01 12:39:12 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-21 05:43:57 +0100 |
commit | b869a0866199562cbe5fed85ac535506d1e18cf6 (patch) | |
tree | e50b09c9d4ba7d5d1148768cc9cd6add7bacf2ab /source4 | |
parent | 8a8948a17a947bccf04df817f5011093c0c5c523 (diff) | |
download | samba-b869a0866199562cbe5fed85ac535506d1e18cf6.tar.gz samba-b869a0866199562cbe5fed85ac535506d1e18cf6.tar.bz2 samba-b869a0866199562cbe5fed85ac535506d1e18cf6.zip |
r25782: use NT_STATUS_HAVE_NO_MEMORY()
metze
(This used to be commit 37da0940f47665c8d2c09b3649fecd93970b5d6f)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/librpc/ndr/ndr_spoolss_buf.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source4/librpc/ndr/ndr_spoolss_buf.c b/source4/librpc/ndr/ndr_spoolss_buf.c index 37991c3bd7..d896b927cf 100644 --- a/source4/librpc/ndr/ndr_spoolss_buf.c +++ b/source4/librpc/ndr/ndr_spoolss_buf.c @@ -56,7 +56,7 @@ if (r->in.buffer) {\ DATA_BLOB _data_blob_info;\ _ndr_info = ndr_push_init_ctx(ndr);\ - if (!_ndr_info) return NT_STATUS_NO_MEMORY;\ + NT_STATUS_HAVE_NO_MEMORY(_ndr_info);\ _ndr_info->flags= ndr->flags;\ if (r->out.info) {\ struct __##fn __r;\ @@ -121,7 +121,7 @@ r->out.result = _r.out.result;\ if (_r.out.info) {\ struct ndr_pull *_ndr_info = ndr_pull_init_blob(_r.out.info, ndr);\ - if (!_ndr_info) return NT_STATUS_NO_MEMORY;\ + NT_STATUS_HAVE_NO_MEMORY(_ndr_info);\ _ndr_info->flags= ndr->flags;\ if (r->in.offered != _ndr_info->data_size) {\ return ndr_pull_error(ndr, NDR_ERR_BUFSIZE,\ @@ -415,7 +415,7 @@ NTSTATUS ndr_push_spoolss_GetPrinterData(struct ndr_push *ndr, int flags, const { struct __spoolss_GetPrinterData __r; _ndr_info = ndr_push_init_ctx(ndr); - if (!_ndr_info) return NT_STATUS_NO_MEMORY; + NT_STATUS_HAVE_NO_MEMORY(_ndr_info); _ndr_info->flags= ndr->flags; __r.in.type = r->out.type; __r.out.data = r->out.data; @@ -470,7 +470,7 @@ NTSTATUS ndr_pull_spoolss_GetPrinterData(struct ndr_pull *ndr, int flags, struct if (_r.out.data.length > 0 && r->out.needed <= _r.out.data.length) { struct __spoolss_GetPrinterData __r; struct ndr_pull *_ndr_data = ndr_pull_init_blob(&_r.out.data, ndr); - if (!_ndr_data) return NT_STATUS_NO_MEMORY; + NT_STATUS_HAVE_NO_MEMORY(_ndr_data); _ndr_data->flags= ndr->flags; __r.in.type = r->out.type; __r.out.data = r->out.data; @@ -495,7 +495,7 @@ NTSTATUS ndr_push_spoolss_SetPrinterData(struct ndr_push *ndr, int flags, const DATA_BLOB _data_blob_data; _ndr_data = ndr_push_init_ctx(ndr);\ - if (!_ndr_data) return NT_STATUS_NO_MEMORY;\ + NT_STATUS_HAVE_NO_MEMORY(_ndr_data);\ _ndr_data->flags= ndr->flags;\ __r.in.type = r->in.type; |