summaryrefslogtreecommitdiff
path: root/source4/librpc/ndr
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-06-07 13:26:49 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:17:47 -0500
commitf6e1f0cf9289667cbb0313d15b6aecbf2e0b0594 (patch)
treef217084cf288571da962611fd4d463986ce40187 /source4/librpc/ndr
parent6a70164fe0c12ee8e914ddb934d7ef7e9ff232aa (diff)
downloadsamba-f6e1f0cf9289667cbb0313d15b6aecbf2e0b0594.tar.gz
samba-f6e1f0cf9289667cbb0313d15b6aecbf2e0b0594.tar.bz2
samba-f6e1f0cf9289667cbb0313d15b6aecbf2e0b0594.zip
r7364: - remove '\' chars from copy paste
- fix allocates [out,ref] pointers to be passed between functions metze (This used to be commit 9a1760c618b10ee08b4e6ad21eb0c7e757ae9dea)
Diffstat (limited to 'source4/librpc/ndr')
-rw-r--r--source4/librpc/ndr/ndr_spoolss_buf.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source4/librpc/ndr/ndr_spoolss_buf.c b/source4/librpc/ndr/ndr_spoolss_buf.c
index 97eaaedee4..00958c2cb8 100644
--- a/source4/librpc/ndr/ndr_spoolss_buf.c
+++ b/source4/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));