diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/printing/nt_printing_migrate.c | 2 | ||||
-rw-r--r-- | source3/rpc_client/init_spoolss.c | 4 | ||||
-rw-r--r-- | source3/rpcclient/cmd_spoolss.c | 4 |
3 files changed, 4 insertions, 6 deletions
diff --git a/source3/printing/nt_printing_migrate.c b/source3/printing/nt_printing_migrate.c index 616d7af3d6..94dc3daa56 100644 --- a/source3/printing/nt_printing_migrate.c +++ b/source3/printing/nt_printing_migrate.c @@ -252,8 +252,6 @@ NTSTATUS printing_tdb_migrate_printer(TALLOC_CTX *mem_ctx, } devmode_ctr.devmode = &dm; - - info2.devmode_ptr = 1; } result = winreg_update_printer(mem_ctx, b, diff --git a/source3/rpc_client/init_spoolss.c b/source3/rpc_client/init_spoolss.c index 8b66227ce7..7e29cdc7ca 100644 --- a/source3/rpc_client/init_spoolss.c +++ b/source3/rpc_client/init_spoolss.c @@ -107,12 +107,12 @@ void spoolss_printerinfo2_to_setprinterinfo2(const struct spoolss_PrinterInfo2 * s->drivername = i->drivername; s->comment = i->comment; s->location = i->location; - s->devmode_ptr = 0; + s->devmode_ptr = NULL; s->sepfile = i->sepfile; s->printprocessor = i->printprocessor; s->datatype = i->datatype; s->parameters = i->parameters; - s->secdesc_ptr = 0; + s->secdesc_ptr = NULL; s->attributes = i->attributes; s->priority = i->priority; s->defaultpriority = i->defaultpriority; diff --git a/source3/rpcclient/cmd_spoolss.c b/source3/rpcclient/cmd_spoolss.c index 52631849e0..969b747f4c 100644 --- a/source3/rpcclient/cmd_spoolss.c +++ b/source3/rpcclient/cmd_spoolss.c @@ -1796,8 +1796,8 @@ static WERROR cmd_spoolss_addprinterex(struct rpc_pipe_client *cli, info2.comment = "Created by rpcclient"; info2.printprocessor = "winprint"; info2.datatype = "RAW"; - info2.devmode_ptr = 0; - info2.secdesc_ptr = 0; + info2.devmode_ptr = NULL; + info2.secdesc_ptr = NULL; info2.attributes = PRINTER_ATTRIBUTE_SHARED; info2.priority = 0; info2.defaultpriority = 0; |