From 7d44cd50e8b420c6981ff93f42085ff664b686c5 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 19 Feb 2009 13:06:11 +0100 Subject: s3: re-run make samba3-idl. Guenther --- librpc/gen_ndr/srv_spoolss.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'librpc/gen_ndr/srv_spoolss.c') diff --git a/librpc/gen_ndr/srv_spoolss.c b/librpc/gen_ndr/srv_spoolss.c index f48cf51b9b..f6c17cb1fa 100644 --- a/librpc/gen_ndr/srv_spoolss.c +++ b/librpc/gen_ndr/srv_spoolss.c @@ -1334,6 +1334,19 @@ static bool api_spoolss_GetPrintProcessorDirectory(pipes_struct *p) NDR_PRINT_IN_DEBUG(spoolss_GetPrintProcessorDirectory, r); } + ZERO_STRUCT(r->out); + r->out.info = talloc_zero(r, union spoolss_PrintProcessorDirectoryInfo); + if (r->out.info == NULL) { + talloc_free(r); + return false; + } + + r->out.needed = talloc_zero(r, uint32_t); + if (r->out.needed == NULL) { + talloc_free(r); + return false; + } + r->out.result = _spoolss_GetPrintProcessorDirectory(p, r); if (p->rng_fault_state) { @@ -7731,6 +7744,17 @@ NTSTATUS rpc_spoolss_dispatch(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, case NDR_SPOOLSS_GETPRINTPROCESSORDIRECTORY: { struct spoolss_GetPrintProcessorDirectory *r = (struct spoolss_GetPrintProcessorDirectory *)_r; + ZERO_STRUCT(r->out); + r->out.info = talloc_zero(mem_ctx, union spoolss_PrintProcessorDirectoryInfo); + if (r->out.info == NULL) { + return NT_STATUS_NO_MEMORY; + } + + r->out.needed = talloc_zero(mem_ctx, uint32_t); + if (r->out.needed == NULL) { + return NT_STATUS_NO_MEMORY; + } + r->out.result = _spoolss_GetPrintProcessorDirectory(cli->pipes_struct, r); return NT_STATUS_OK; } -- cgit