diff options
author | Günther Deschner <gd@samba.org> | 2009-07-03 18:39:38 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-07-03 22:05:37 +0200 |
commit | cb39ba3d40841097c513358e7bac361aa7e38a9c (patch) | |
tree | 8b0e5831c74a60930e12f86dd50cfc81e260293a /librpc/gen_ndr/srv_spoolss.c | |
parent | c5415e7e09d40518e20fe12f6f9ad88e4da8369e (diff) | |
download | samba-cb39ba3d40841097c513358e7bac361aa7e38a9c.tar.gz samba-cb39ba3d40841097c513358e7bac361aa7e38a9c.tar.bz2 samba-cb39ba3d40841097c513358e7bac361aa7e38a9c.zip |
spoolss: fill in spoolss_GetPrinterDriver IDL.
Guenther
Diffstat (limited to 'librpc/gen_ndr/srv_spoolss.c')
-rw-r--r-- | librpc/gen_ndr/srv_spoolss.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/librpc/gen_ndr/srv_spoolss.c b/librpc/gen_ndr/srv_spoolss.c index 764c805397..41a79b4a79 100644 --- a/librpc/gen_ndr/srv_spoolss.c +++ b/librpc/gen_ndr/srv_spoolss.c @@ -944,6 +944,19 @@ static bool api_spoolss_GetPrinterDriver(pipes_struct *p) NDR_PRINT_IN_DEBUG(spoolss_GetPrinterDriver, r); } + ZERO_STRUCT(r->out); + r->out.info = talloc_zero(r, union spoolss_DriverInfo); + 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_GetPrinterDriver(p, r); if (p->rng_fault_state) { @@ -7725,6 +7738,17 @@ NTSTATUS rpc_spoolss_dispatch(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, case NDR_SPOOLSS_GETPRINTERDRIVER: { struct spoolss_GetPrinterDriver *r = (struct spoolss_GetPrinterDriver *)_r; + ZERO_STRUCT(r->out); + r->out.info = talloc_zero(mem_ctx, union spoolss_DriverInfo); + 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_GetPrinterDriver(cli->pipes_struct, r); return NT_STATUS_OK; } |