summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-02-06 17:10:02 +0100
committerGünther Deschner <gd@samba.org>2009-02-06 17:35:56 +0100
commit9ad6b94339203a88cfbd78a9faff3bc35877ff8e (patch)
tree470851de27e8b67dc649e95542ff594faf8dc3b5
parent68077a6d641bc115dfe821fa02552ce10ce5c153 (diff)
downloadsamba-9ad6b94339203a88cfbd78a9faff3bc35877ff8e.tar.gz
samba-9ad6b94339203a88cfbd78a9faff3bc35877ff8e.tar.bz2
samba-9ad6b94339203a88cfbd78a9faff3bc35877ff8e.zip
spoolss: fix spoolss helper functions and macros w.r.t. needed pointer.
Guenther
-rw-r--r--librpc/ndr/ndr_spoolss_buf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/librpc/ndr/ndr_spoolss_buf.c b/librpc/ndr/ndr_spoolss_buf.c
index 1cb1df3fd5..501ddff681 100644
--- a/librpc/ndr/ndr_spoolss_buf.c
+++ b/librpc/ndr/ndr_spoolss_buf.c
@@ -131,7 +131,7 @@
"SPOOLSS Buffer: offered[%u] doesn't match length of buffer[%u]",\
(unsigned)r->in.offered, (unsigned)_ndr_info->data_size);\
}\
- if (r->out.needed <= _ndr_info->data_size) {\
+ if (*r->out.needed <= _ndr_info->data_size) {\
struct __##fn __r;\
__r.in.level = r->in.level;\
__r.in.count = r->out.count;\
@@ -471,7 +471,7 @@ enum ndr_err_code ndr_pull_spoolss_GetPrinterData(struct ndr_pull *ndr, int flag
"SPOOLSS Buffer: r->in.offered[%u] doesn't match length of out buffer[%u]",
(unsigned)r->in.offered, (unsigned)_r.out.data.length);
}
- if (_r.out.data.length > 0 && r->out.needed <= _r.out.data.length) {
+ 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, ndr->iconv_convenience);
NDR_ERR_HAVE_NO_MEMORY(_ndr_data);