s3-printing: fill devicemode size in migrate_printer()
authorDavid Disseldorp <ddiss@suse.de>
Wed, 15 Jun 2011 10:46:55 +0000 (12:46 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 12 Jul 2011 18:58:03 +0000 (20:58 +0200)
Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit a36ce0735ff6cad8124bd63a056a71d9495b238c)

source3/printing/nt_printing_migrate.c
source3/utils/net_printing.c

index f56fa9a2f08f67283fc064b9de4c8a2097c87669..8d0551c774d16134cca9eec0cefd60c93525e076 100644 (file)
@@ -318,6 +318,7 @@ static NTSTATUS migrate_printer(TALLOC_CTX *mem_ctx,
                dm.pelsheight              = r.devmode->pelsheight;
                dm.pelswidth               = r.devmode->pelswidth;
                dm.printquality            = r.devmode->printquality;
+               dm.size                    = r.devmode->size;
                dm.scale                   = r.devmode->scale;
                dm.specversion             = r.devmode->specversion;
                dm.ttoption                = r.devmode->ttoption;
index 7e728238d474450528aab387336240ba86fceec9..fb7106d0437e08b40d4af65a6b9c906a8ae05e9c 100644 (file)
@@ -466,6 +466,7 @@ static NTSTATUS migrate_printer(TALLOC_CTX *mem_ctx,
                dm.pelsheight              = r.devmode->pelsheight;
                dm.pelswidth               = r.devmode->pelswidth;
                dm.printquality            = r.devmode->printquality;
+               dm.size                    = r.devmode->size;
                dm.scale                   = r.devmode->scale;
                dm.specversion             = r.devmode->specversion;
                dm.ttoption                = r.devmode->ttoption;