DATA_BLOB *buffer /* [in] [unique] */,
uint32_t offered /* [in] */,
uint32_t *count /* [out] [ref] */,
- union spoolss_PrinterInfo **info /* [out] [ref,switch_is(level),size_is(*count)] */,
+ union spoolss_PrinterInfo **info /* [out] [ref,switch_is(level),size_is(,*count)] */,
uint32_t *needed /* [out] [ref] */,
WERROR *werror)
{
/* Return variables */
*count = *r.out.count;
- memcpy(info, r.out.info, *count * sizeof(*info));
+ *info = *r.out.info;
*needed = *r.out.needed;
/* Return result */
DATA_BLOB *buffer /* [in] [unique] */,
uint32_t offered /* [in] */,
uint32_t *count /* [out] [ref] */,
- union spoolss_JobInfo **info /* [out] [ref,switch_is(level),size_is(*count)] */,
+ union spoolss_JobInfo **info /* [out] [ref,switch_is(level),size_is(,*count)] */,
uint32_t *needed /* [out] [ref] */,
WERROR *werror)
{
/* Return variables */
*count = *r.out.count;
- memcpy(info, r.out.info, *count * sizeof(*info));
+ *info = *r.out.info;
*needed = *r.out.needed;
/* Return result */
DATA_BLOB *buffer /* [in] [unique] */,
uint32_t offered /* [in] */,
uint32_t *count /* [out] [ref] */,
- union spoolss_DriverInfo **info /* [out] [ref,switch_is(level),size_is(*count)] */,
+ union spoolss_DriverInfo **info /* [out] [ref,switch_is(level),size_is(,*count)] */,
uint32_t *needed /* [out] [ref] */,
WERROR *werror)
{
/* Return variables */
*count = *r.out.count;
- memcpy(info, r.out.info, *count * sizeof(*info));
+ *info = *r.out.info;
*needed = *r.out.needed;
/* Return result */
DATA_BLOB *buffer /* [in] [unique] */,
uint32_t offered /* [in] */,
uint32_t *count /* [out] [ref] */,
- union spoolss_PrintProcessorInfo **info /* [out] [ref,switch_is(level),size_is(*count)] */,
+ union spoolss_PrintProcessorInfo **info /* [out] [ref,switch_is(level),size_is(,*count)] */,
uint32_t *needed /* [out] [ref] */,
WERROR *werror)
{
/* Return variables */
*count = *r.out.count;
- memcpy(info, r.out.info, *count * sizeof(*info));
+ *info = *r.out.info;
*needed = *r.out.needed;
/* Return result */
DATA_BLOB *buffer /* [in] [unique] */,
uint32_t offered /* [in] */,
uint32_t *count /* [out] [ref] */,
- union spoolss_FormInfo **info /* [out] [ref,switch_is(level),size_is(*count)] */,
+ union spoolss_FormInfo **info /* [out] [ref,switch_is(level),size_is(,*count)] */,
uint32_t *needed /* [out] [ref] */,
WERROR *werror)
{
/* Return variables */
*count = *r.out.count;
- memcpy(info, r.out.info, *count * sizeof(*info));
+ *info = *r.out.info;
*needed = *r.out.needed;
/* Return result */
DATA_BLOB *buffer /* [in] [unique] */,
uint32_t offered /* [in] */,
uint32_t *count /* [out] [ref] */,
- union spoolss_PortInfo **info /* [out] [ref,switch_is(level),size_is(*count)] */,
+ union spoolss_PortInfo **info /* [out] [ref,switch_is(level),size_is(,*count)] */,
uint32_t *needed /* [out] [ref] */,
WERROR *werror)
{
/* Return variables */
*count = *r.out.count;
- memcpy(info, r.out.info, *count * sizeof(*info));
+ *info = *r.out.info;
*needed = *r.out.needed;
/* Return result */
DATA_BLOB *buffer /* [in] [unique] */,
uint32_t offered /* [in] */,
uint32_t *count /* [out] [ref] */,
- union spoolss_MonitorInfo **info /* [out] [ref,switch_is(level),size_is(*count)] */,
+ union spoolss_MonitorInfo **info /* [out] [ref,switch_is(level),size_is(,*count)] */,
uint32_t *needed /* [out] [ref] */,
WERROR *werror)
{
/* Return variables */
*count = *r.out.count;
- memcpy(info, r.out.info, *count * sizeof(*info));
+ *info = *r.out.info;
*needed = *r.out.needed;
/* Return result */
DATA_BLOB *buffer /* [in] [unique] */,
uint32_t offered /* [in] */,
uint32_t *count /* [out] [ref] */,
- union spoolss_PrinterInfo **info /* [out] [ref,switch_is(level),size_is(*count)] */,
+ union spoolss_PrinterInfo **info /* [out] [ref,switch_is(level),size_is(,*count)] */,
uint32_t *needed /* [out] [ref] */,
WERROR *werror);
NTSTATUS rpccli_spoolss_OpenPrinter(struct rpc_pipe_client *cli,
DATA_BLOB *buffer /* [in] [unique] */,
uint32_t offered /* [in] */,
uint32_t *count /* [out] [ref] */,
- union spoolss_JobInfo **info /* [out] [ref,switch_is(level),size_is(*count)] */,
+ union spoolss_JobInfo **info /* [out] [ref,switch_is(level),size_is(,*count)] */,
uint32_t *needed /* [out] [ref] */,
WERROR *werror);
NTSTATUS rpccli_spoolss_AddPrinter(struct rpc_pipe_client *cli,
DATA_BLOB *buffer /* [in] [unique] */,
uint32_t offered /* [in] */,
uint32_t *count /* [out] [ref] */,
- union spoolss_DriverInfo **info /* [out] [ref,switch_is(level),size_is(*count)] */,
+ union spoolss_DriverInfo **info /* [out] [ref,switch_is(level),size_is(,*count)] */,
uint32_t *needed /* [out] [ref] */,
WERROR *werror);
NTSTATUS rpccli_spoolss_GetPrinterDriver(struct rpc_pipe_client *cli,
DATA_BLOB *buffer /* [in] [unique] */,
uint32_t offered /* [in] */,
uint32_t *count /* [out] [ref] */,
- union spoolss_PrintProcessorInfo **info /* [out] [ref,switch_is(level),size_is(*count)] */,
+ union spoolss_PrintProcessorInfo **info /* [out] [ref,switch_is(level),size_is(,*count)] */,
uint32_t *needed /* [out] [ref] */,
WERROR *werror);
NTSTATUS rpccli_spoolss_GetPrintProcessorDirectory(struct rpc_pipe_client *cli,
DATA_BLOB *buffer /* [in] [unique] */,
uint32_t offered /* [in] */,
uint32_t *count /* [out] [ref] */,
- union spoolss_FormInfo **info /* [out] [ref,switch_is(level),size_is(*count)] */,
+ union spoolss_FormInfo **info /* [out] [ref,switch_is(level),size_is(,*count)] */,
uint32_t *needed /* [out] [ref] */,
WERROR *werror);
NTSTATUS rpccli_spoolss_EnumPorts(struct rpc_pipe_client *cli,
DATA_BLOB *buffer /* [in] [unique] */,
uint32_t offered /* [in] */,
uint32_t *count /* [out] [ref] */,
- union spoolss_PortInfo **info /* [out] [ref,switch_is(level),size_is(*count)] */,
+ union spoolss_PortInfo **info /* [out] [ref,switch_is(level),size_is(,*count)] */,
uint32_t *needed /* [out] [ref] */,
WERROR *werror);
NTSTATUS rpccli_spoolss_EnumMonitors(struct rpc_pipe_client *cli,
DATA_BLOB *buffer /* [in] [unique] */,
uint32_t offered /* [in] */,
uint32_t *count /* [out] [ref] */,
- union spoolss_MonitorInfo **info /* [out] [ref,switch_is(level),size_is(*count)] */,
+ union spoolss_MonitorInfo **info /* [out] [ref,switch_is(level),size_is(,*count)] */,
uint32_t *needed /* [out] [ref] */,
WERROR *werror);
NTSTATUS rpccli_spoolss_AddPort(struct rpc_pipe_client *cli,
_PUBLIC_ void ndr_print_spoolss_EnumPrinters(struct ndr_print *ndr, const char *name, int flags, const struct spoolss_EnumPrinters *r)
{
- uint32_t cntr_info_1;
+ uint32_t cntr_info_2;
ndr_print_struct(ndr, name, "spoolss_EnumPrinters");
ndr->depth++;
if (flags & NDR_SET_VALUES) {
ndr->depth--;
ndr_print_ptr(ndr, "info", r->out.info);
ndr->depth++;
- ndr->print(ndr, "%s: ARRAY(%d)", "info", (int)*r->out.count);
+ ndr_print_ptr(ndr, "info", *r->out.info);
ndr->depth++;
- for (cntr_info_1=0;cntr_info_1<*r->out.count;cntr_info_1++) {
- char *idx_1=NULL;
- if (asprintf(&idx_1, "[%d]", cntr_info_1) != -1) {
- ndr_print_ptr(ndr, "info", r->out.info[cntr_info_1]);
- ndr->depth++;
- if (r->out.info[cntr_info_1]) {
- ndr_print_set_switch_value(ndr, r->out.info[cntr_info_1], r->in.level);
- ndr_print_spoolss_PrinterInfo(ndr, "info", r->out.info[cntr_info_1]);
+ if (*r->out.info) {
+ ndr->print(ndr, "%s: ARRAY(%d)", "info", (int)*r->out.count);
+ ndr->depth++;
+ for (cntr_info_2=0;cntr_info_2<*r->out.count;cntr_info_2++) {
+ char *idx_2=NULL;
+ if (asprintf(&idx_2, "[%d]", cntr_info_2) != -1) {
+ ndr_print_set_switch_value(ndr, &(*r->out.info)[cntr_info_2], r->in.level);
+ ndr_print_spoolss_PrinterInfo(ndr, "info", &(*r->out.info)[cntr_info_2]);
+ free(idx_2);
}
- ndr->depth--;
- free(idx_1);
}
+ ndr->depth--;
}
ndr->depth--;
ndr->depth--;
_PUBLIC_ void ndr_print_spoolss_EnumJobs(struct ndr_print *ndr, const char *name, int flags, const struct spoolss_EnumJobs *r)
{
- uint32_t cntr_info_1;
+ uint32_t cntr_info_2;
ndr_print_struct(ndr, name, "spoolss_EnumJobs");
ndr->depth++;
if (flags & NDR_SET_VALUES) {
ndr->depth--;
ndr_print_ptr(ndr, "info", r->out.info);
ndr->depth++;
- ndr->print(ndr, "%s: ARRAY(%d)", "info", (int)*r->out.count);
+ ndr_print_ptr(ndr, "info", *r->out.info);
ndr->depth++;
- for (cntr_info_1=0;cntr_info_1<*r->out.count;cntr_info_1++) {
- char *idx_1=NULL;
- if (asprintf(&idx_1, "[%d]", cntr_info_1) != -1) {
- ndr_print_ptr(ndr, "info", r->out.info[cntr_info_1]);
- ndr->depth++;
- if (r->out.info[cntr_info_1]) {
- ndr_print_set_switch_value(ndr, r->out.info[cntr_info_1], r->in.level);
- ndr_print_spoolss_JobInfo(ndr, "info", r->out.info[cntr_info_1]);
+ if (*r->out.info) {
+ ndr->print(ndr, "%s: ARRAY(%d)", "info", (int)*r->out.count);
+ ndr->depth++;
+ for (cntr_info_2=0;cntr_info_2<*r->out.count;cntr_info_2++) {
+ char *idx_2=NULL;
+ if (asprintf(&idx_2, "[%d]", cntr_info_2) != -1) {
+ ndr_print_set_switch_value(ndr, &(*r->out.info)[cntr_info_2], r->in.level);
+ ndr_print_spoolss_JobInfo(ndr, "info", &(*r->out.info)[cntr_info_2]);
+ free(idx_2);
}
- ndr->depth--;
- free(idx_1);
}
+ ndr->depth--;
}
ndr->depth--;
ndr->depth--;
_PUBLIC_ void ndr_print_spoolss_EnumPrinterDrivers(struct ndr_print *ndr, const char *name, int flags, const struct spoolss_EnumPrinterDrivers *r)
{
- uint32_t cntr_info_1;
+ uint32_t cntr_info_2;
ndr_print_struct(ndr, name, "spoolss_EnumPrinterDrivers");
ndr->depth++;
if (flags & NDR_SET_VALUES) {
ndr->depth--;
ndr_print_ptr(ndr, "info", r->out.info);
ndr->depth++;
- ndr->print(ndr, "%s: ARRAY(%d)", "info", (int)*r->out.count);
+ ndr_print_ptr(ndr, "info", *r->out.info);
ndr->depth++;
- for (cntr_info_1=0;cntr_info_1<*r->out.count;cntr_info_1++) {
- char *idx_1=NULL;
- if (asprintf(&idx_1, "[%d]", cntr_info_1) != -1) {
- ndr_print_ptr(ndr, "info", r->out.info[cntr_info_1]);
- ndr->depth++;
- if (r->out.info[cntr_info_1]) {
- ndr_print_set_switch_value(ndr, r->out.info[cntr_info_1], r->in.level);
- ndr_print_spoolss_DriverInfo(ndr, "info", r->out.info[cntr_info_1]);
+ if (*r->out.info) {
+ ndr->print(ndr, "%s: ARRAY(%d)", "info", (int)*r->out.count);
+ ndr->depth++;
+ for (cntr_info_2=0;cntr_info_2<*r->out.count;cntr_info_2++) {
+ char *idx_2=NULL;
+ if (asprintf(&idx_2, "[%d]", cntr_info_2) != -1) {
+ ndr_print_set_switch_value(ndr, &(*r->out.info)[cntr_info_2], r->in.level);
+ ndr_print_spoolss_DriverInfo(ndr, "info", &(*r->out.info)[cntr_info_2]);
+ free(idx_2);
}
- ndr->depth--;
- free(idx_1);
}
+ ndr->depth--;
}
ndr->depth--;
ndr->depth--;
_PUBLIC_ void ndr_print_spoolss_EnumPrintProcessors(struct ndr_print *ndr, const char *name, int flags, const struct spoolss_EnumPrintProcessors *r)
{
- uint32_t cntr_info_1;
+ uint32_t cntr_info_2;
ndr_print_struct(ndr, name, "spoolss_EnumPrintProcessors");
ndr->depth++;
if (flags & NDR_SET_VALUES) {
ndr->depth--;
ndr_print_ptr(ndr, "info", r->out.info);
ndr->depth++;
- ndr->print(ndr, "%s: ARRAY(%d)", "info", (int)*r->out.count);
+ ndr_print_ptr(ndr, "info", *r->out.info);
ndr->depth++;
- for (cntr_info_1=0;cntr_info_1<*r->out.count;cntr_info_1++) {
- char *idx_1=NULL;
- if (asprintf(&idx_1, "[%d]", cntr_info_1) != -1) {
- ndr_print_ptr(ndr, "info", r->out.info[cntr_info_1]);
- ndr->depth++;
- if (r->out.info[cntr_info_1]) {
- ndr_print_set_switch_value(ndr, r->out.info[cntr_info_1], r->in.level);
- ndr_print_spoolss_PrintProcessorInfo(ndr, "info", r->out.info[cntr_info_1]);
+ if (*r->out.info) {
+ ndr->print(ndr, "%s: ARRAY(%d)", "info", (int)*r->out.count);
+ ndr->depth++;
+ for (cntr_info_2=0;cntr_info_2<*r->out.count;cntr_info_2++) {
+ char *idx_2=NULL;
+ if (asprintf(&idx_2, "[%d]", cntr_info_2) != -1) {
+ ndr_print_set_switch_value(ndr, &(*r->out.info)[cntr_info_2], r->in.level);
+ ndr_print_spoolss_PrintProcessorInfo(ndr, "info", &(*r->out.info)[cntr_info_2]);
+ free(idx_2);
}
- ndr->depth--;
- free(idx_1);
}
+ ndr->depth--;
}
ndr->depth--;
ndr->depth--;
_PUBLIC_ void ndr_print_spoolss_EnumForms(struct ndr_print *ndr, const char *name, int flags, const struct spoolss_EnumForms *r)
{
- uint32_t cntr_info_1;
+ uint32_t cntr_info_2;
ndr_print_struct(ndr, name, "spoolss_EnumForms");
ndr->depth++;
if (flags & NDR_SET_VALUES) {
ndr->depth--;
ndr_print_ptr(ndr, "info", r->out.info);
ndr->depth++;
- ndr->print(ndr, "%s: ARRAY(%d)", "info", (int)*r->out.count);
+ ndr_print_ptr(ndr, "info", *r->out.info);
ndr->depth++;
- for (cntr_info_1=0;cntr_info_1<*r->out.count;cntr_info_1++) {
- char *idx_1=NULL;
- if (asprintf(&idx_1, "[%d]", cntr_info_1) != -1) {
- ndr_print_ptr(ndr, "info", r->out.info[cntr_info_1]);
- ndr->depth++;
- if (r->out.info[cntr_info_1]) {
- ndr_print_set_switch_value(ndr, r->out.info[cntr_info_1], r->in.level);
- ndr_print_spoolss_FormInfo(ndr, "info", r->out.info[cntr_info_1]);
+ if (*r->out.info) {
+ ndr->print(ndr, "%s: ARRAY(%d)", "info", (int)*r->out.count);
+ ndr->depth++;
+ for (cntr_info_2=0;cntr_info_2<*r->out.count;cntr_info_2++) {
+ char *idx_2=NULL;
+ if (asprintf(&idx_2, "[%d]", cntr_info_2) != -1) {
+ ndr_print_set_switch_value(ndr, &(*r->out.info)[cntr_info_2], r->in.level);
+ ndr_print_spoolss_FormInfo(ndr, "info", &(*r->out.info)[cntr_info_2]);
+ free(idx_2);
}
- ndr->depth--;
- free(idx_1);
}
+ ndr->depth--;
}
ndr->depth--;
ndr->depth--;
_PUBLIC_ void ndr_print_spoolss_EnumPorts(struct ndr_print *ndr, const char *name, int flags, const struct spoolss_EnumPorts *r)
{
- uint32_t cntr_info_1;
+ uint32_t cntr_info_2;
ndr_print_struct(ndr, name, "spoolss_EnumPorts");
ndr->depth++;
if (flags & NDR_SET_VALUES) {
ndr->depth--;
ndr_print_ptr(ndr, "info", r->out.info);
ndr->depth++;
- ndr->print(ndr, "%s: ARRAY(%d)", "info", (int)*r->out.count);
+ ndr_print_ptr(ndr, "info", *r->out.info);
ndr->depth++;
- for (cntr_info_1=0;cntr_info_1<*r->out.count;cntr_info_1++) {
- char *idx_1=NULL;
- if (asprintf(&idx_1, "[%d]", cntr_info_1) != -1) {
- ndr_print_ptr(ndr, "info", r->out.info[cntr_info_1]);
- ndr->depth++;
- if (r->out.info[cntr_info_1]) {
- ndr_print_set_switch_value(ndr, r->out.info[cntr_info_1], r->in.level);
- ndr_print_spoolss_PortInfo(ndr, "info", r->out.info[cntr_info_1]);
+ if (*r->out.info) {
+ ndr->print(ndr, "%s: ARRAY(%d)", "info", (int)*r->out.count);
+ ndr->depth++;
+ for (cntr_info_2=0;cntr_info_2<*r->out.count;cntr_info_2++) {
+ char *idx_2=NULL;
+ if (asprintf(&idx_2, "[%d]", cntr_info_2) != -1) {
+ ndr_print_set_switch_value(ndr, &(*r->out.info)[cntr_info_2], r->in.level);
+ ndr_print_spoolss_PortInfo(ndr, "info", &(*r->out.info)[cntr_info_2]);
+ free(idx_2);
}
- ndr->depth--;
- free(idx_1);
}
+ ndr->depth--;
}
ndr->depth--;
ndr->depth--;
_PUBLIC_ void ndr_print_spoolss_EnumMonitors(struct ndr_print *ndr, const char *name, int flags, const struct spoolss_EnumMonitors *r)
{
- uint32_t cntr_info_1;
+ uint32_t cntr_info_2;
ndr_print_struct(ndr, name, "spoolss_EnumMonitors");
ndr->depth++;
if (flags & NDR_SET_VALUES) {
ndr->depth--;
ndr_print_ptr(ndr, "info", r->out.info);
ndr->depth++;
- ndr->print(ndr, "%s: ARRAY(%d)", "info", (int)*r->out.count);
+ ndr_print_ptr(ndr, "info", *r->out.info);
ndr->depth++;
- for (cntr_info_1=0;cntr_info_1<*r->out.count;cntr_info_1++) {
- char *idx_1=NULL;
- if (asprintf(&idx_1, "[%d]", cntr_info_1) != -1) {
- ndr_print_ptr(ndr, "info", r->out.info[cntr_info_1]);
- ndr->depth++;
- if (r->out.info[cntr_info_1]) {
- ndr_print_set_switch_value(ndr, r->out.info[cntr_info_1], r->in.level);
- ndr_print_spoolss_MonitorInfo(ndr, "info", r->out.info[cntr_info_1]);
+ if (*r->out.info) {
+ ndr->print(ndr, "%s: ARRAY(%d)", "info", (int)*r->out.count);
+ ndr->depth++;
+ for (cntr_info_2=0;cntr_info_2<*r->out.count;cntr_info_2++) {
+ char *idx_2=NULL;
+ if (asprintf(&idx_2, "[%d]", cntr_info_2) != -1) {
+ ndr_print_set_switch_value(ndr, &(*r->out.info)[cntr_info_2], r->in.level);
+ ndr_print_spoolss_MonitorInfo(ndr, "info", &(*r->out.info)[cntr_info_2]);
+ free(idx_2);
}
- ndr->depth--;
- free(idx_1);
}
+ ndr->depth--;
}
ndr->depth--;
ndr->depth--;
struct {
uint32_t *count;/* [ref] */
- union spoolss_PrinterInfo **info;/* [ref,switch_is(level),size_is(*count)] */
+ union spoolss_PrinterInfo **info;/* [ref,switch_is(level),size_is(,*count)] */
uint32_t *needed;/* [ref] */
WERROR result;
} out;
struct {
uint32_t *count;/* [ref] */
- union spoolss_JobInfo **info;/* [ref,switch_is(level),size_is(*count)] */
+ union spoolss_JobInfo **info;/* [ref,switch_is(level),size_is(,*count)] */
uint32_t *needed;/* [ref] */
WERROR result;
} out;
struct {
uint32_t *count;/* [ref] */
- union spoolss_DriverInfo **info;/* [ref,switch_is(level),size_is(*count)] */
+ union spoolss_DriverInfo **info;/* [ref,switch_is(level),size_is(,*count)] */
uint32_t *needed;/* [ref] */
WERROR result;
} out;
struct {
uint32_t *count;/* [ref] */
- union spoolss_PrintProcessorInfo **info;/* [ref,switch_is(level),size_is(*count)] */
+ union spoolss_PrintProcessorInfo **info;/* [ref,switch_is(level),size_is(,*count)] */
uint32_t *needed;/* [ref] */
WERROR result;
} out;
struct {
uint32_t *count;/* [ref] */
- union spoolss_FormInfo **info;/* [ref,switch_is(level),size_is(*count)] */
+ union spoolss_FormInfo **info;/* [ref,switch_is(level),size_is(,*count)] */
uint32_t *needed;/* [ref] */
WERROR result;
} out;
struct {
uint32_t *count;/* [ref] */
- union spoolss_PortInfo **info;/* [ref,switch_is(level),size_is(*count)] */
+ union spoolss_PortInfo **info;/* [ref,switch_is(level),size_is(,*count)] */
uint32_t *needed;/* [ref] */
WERROR result;
} out;
struct {
uint32_t *count;/* [ref] */
- union spoolss_MonitorInfo **info;/* [ref,switch_is(level),size_is(*count)] */
+ union spoolss_MonitorInfo **info;/* [ref,switch_is(level),size_is(,*count)] */
uint32_t *needed;/* [ref] */
WERROR result;
} out;
return false;
}
- r->out.info = talloc_zero_array(r, union spoolss_PrinterInfo *, *r->out.count);
+ r->out.info = talloc_zero(r, union spoolss_PrinterInfo *);
if (r->out.info == NULL) {
talloc_free(r);
return false;
return false;
}
- r->out.info = talloc_zero_array(r, union spoolss_JobInfo *, *r->out.count);
+ r->out.info = talloc_zero(r, union spoolss_JobInfo *);
if (r->out.info == NULL) {
talloc_free(r);
return false;
return false;
}
- r->out.info = talloc_zero_array(r, union spoolss_DriverInfo *, *r->out.count);
+ r->out.info = talloc_zero(r, union spoolss_DriverInfo *);
if (r->out.info == NULL) {
talloc_free(r);
return false;
return false;
}
- r->out.info = talloc_zero_array(r, union spoolss_PrintProcessorInfo *, *r->out.count);
+ r->out.info = talloc_zero(r, union spoolss_PrintProcessorInfo *);
if (r->out.info == NULL) {
talloc_free(r);
return false;
return false;
}
- r->out.info = talloc_zero_array(r, union spoolss_FormInfo *, *r->out.count);
+ r->out.info = talloc_zero(r, union spoolss_FormInfo *);
if (r->out.info == NULL) {
talloc_free(r);
return false;
return false;
}
- r->out.info = talloc_zero_array(r, union spoolss_PortInfo *, *r->out.count);
+ r->out.info = talloc_zero(r, union spoolss_PortInfo *);
if (r->out.info == NULL) {
talloc_free(r);
return false;
return false;
}
- r->out.info = talloc_zero_array(r, union spoolss_MonitorInfo *, *r->out.count);
+ r->out.info = talloc_zero(r, union spoolss_MonitorInfo *);
if (r->out.info == NULL) {
talloc_free(r);
return false;
return NT_STATUS_NO_MEMORY;
}
- r->out.info = talloc_zero_array(mem_ctx, union spoolss_PrinterInfo *, *r->out.count);
+ r->out.info = talloc_zero(mem_ctx, union spoolss_PrinterInfo *);
if (r->out.info == NULL) {
return NT_STATUS_NO_MEMORY;
}
return NT_STATUS_NO_MEMORY;
}
- r->out.info = talloc_zero_array(mem_ctx, union spoolss_JobInfo *, *r->out.count);
+ r->out.info = talloc_zero(mem_ctx, union spoolss_JobInfo *);
if (r->out.info == NULL) {
return NT_STATUS_NO_MEMORY;
}
return NT_STATUS_NO_MEMORY;
}
- r->out.info = talloc_zero_array(mem_ctx, union spoolss_DriverInfo *, *r->out.count);
+ r->out.info = talloc_zero(mem_ctx, union spoolss_DriverInfo *);
if (r->out.info == NULL) {
return NT_STATUS_NO_MEMORY;
}
return NT_STATUS_NO_MEMORY;
}
- r->out.info = talloc_zero_array(mem_ctx, union spoolss_PrintProcessorInfo *, *r->out.count);
+ r->out.info = talloc_zero(mem_ctx, union spoolss_PrintProcessorInfo *);
if (r->out.info == NULL) {
return NT_STATUS_NO_MEMORY;
}
return NT_STATUS_NO_MEMORY;
}
- r->out.info = talloc_zero_array(mem_ctx, union spoolss_FormInfo *, *r->out.count);
+ r->out.info = talloc_zero(mem_ctx, union spoolss_FormInfo *);
if (r->out.info == NULL) {
return NT_STATUS_NO_MEMORY;
}
return NT_STATUS_NO_MEMORY;
}
- r->out.info = talloc_zero_array(mem_ctx, union spoolss_PortInfo *, *r->out.count);
+ r->out.info = talloc_zero(mem_ctx, union spoolss_PortInfo *);
if (r->out.info == NULL) {
return NT_STATUS_NO_MEMORY;
}
return NT_STATUS_NO_MEMORY;
}
- r->out.info = talloc_zero_array(mem_ctx, union spoolss_MonitorInfo *, *r->out.count);
+ r->out.info = talloc_zero(mem_ctx, union spoolss_MonitorInfo *);
if (r->out.info == NULL) {
return NT_STATUS_NO_MEMORY;
}