summaryrefslogtreecommitdiffstats
path: root/source/librpc/ndr
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-06-07 13:26:49 +0000
committerStefan Metzmacher <metze@samba.org>2005-06-07 13:26:49 +0000
commita28baf62a549cc398b310d3ae4293a30e5604a8e (patch)
tree4c86266095949a2d44a3e3182da9b0ad2f97c0a8 /source/librpc/ndr
parent5a870da45fbd08480de17e9089eabfc3aafb8d8e (diff)
downloadsamba-a28baf62a549cc398b310d3ae4293a30e5604a8e.tar.gz
samba-a28baf62a549cc398b310d3ae4293a30e5604a8e.tar.xz
samba-a28baf62a549cc398b310d3ae4293a30e5604a8e.zip
r7364: - remove '\' chars from copy paste
- fix allocates [out,ref] pointers to be passed between functions metze
Diffstat (limited to 'source/librpc/ndr')
-rw-r--r--source/librpc/ndr/ndr_spoolss_buf.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source/librpc/ndr/ndr_spoolss_buf.c b/source/librpc/ndr/ndr_spoolss_buf.c
index 97eaaedee45..00958c2cb84 100644
--- a/source/librpc/ndr/ndr_spoolss_buf.c
+++ b/source/librpc/ndr/ndr_spoolss_buf.c
@@ -75,6 +75,7 @@
r->in.level = _r.in.level;\
r->in.buffer = _r.in.buffer;\
r->in.buf_size = _r.in.buf_size;\
+ r->out.buf_size = _r.out.buf_size;\
} while(0)
#define NDR_SPOOLSS_PULL_ENUM_OUT(fn) do { \
@@ -370,6 +371,7 @@ NTSTATUS ndr_pull_spoolss_GetPrinterData(struct ndr_pull *ndr, int flags, struct
r->in.handle = _r.in.handle;
r->in.value_name= _r.in.value_name;
r->in.buf_size = _r.in.buf_size;
+ r->out.buf_size = _r.out.buf_size;
}
if (flags & NDR_OUT) {
_r.in.handle = r->in.handle;
@@ -386,9 +388,9 @@ NTSTATUS ndr_pull_spoolss_GetPrinterData(struct ndr_pull *ndr, int flags, struct
r->out.result = _r.out.result;
if (_r.out.data.length > 0) {
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;\
- _ndr_data->flags= ndr->flags;\
+ struct ndr_pull *_ndr_data = ndr_pull_init_blob(&_r.out.data, ndr);
+ if (!_ndr_data) return NT_STATUS_NO_MEMORY;
+ _ndr_data->flags= ndr->flags;
__r.in.type = r->out.type;
__r.out.data = r->out.data;
NDR_CHECK(ndr_pull___spoolss_GetPrinterData(_ndr_data, flags, &__r));