[PATCH 3/6] s3-printing: fill devicemode size in migrate_printer()

David Disseldorp ddiss at suse.de
Fri Jun 17 05:39:18 MDT 2011


---
 source3/printing/nt_printing_migrate.c |    1 +
 source3/utils/net_printing.c           |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/source3/printing/nt_printing_migrate.c b/source3/printing/nt_printing_migrate.c
index 4d01671..2eeccb7 100644
--- a/source3/printing/nt_printing_migrate.c
+++ b/source3/printing/nt_printing_migrate.c
@@ -319,6 +319,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;
diff --git a/source3/utils/net_printing.c b/source3/utils/net_printing.c
index 7e72823..fb7106d 100644
--- a/source3/utils/net_printing.c
+++ b/source3/utils/net_printing.c
@@ -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;
-- 
1.7.1



More information about the samba-technical mailing list