summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_spoolss_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_spoolss_util.c b/source3/rpc_server/srv_spoolss_util.c
index a0f5a4cfc5..e38dca43be 100644
--- a/source3/rpc_server/srv_spoolss_util.c
+++ b/source3/rpc_server/srv_spoolss_util.c
@@ -2217,7 +2217,7 @@ WERROR winreg_get_printer(TALLOC_CTX *mem_ctx,
}
if (info2->devmode) {
- info2->devmode->size = ndr_size_spoolss_DeviceMode(info2->devmode, 0);
+ info2->devmode->size = ndr_size_spoolss_DeviceMode(info2->devmode, 0) - info2->devmode->driverextra_data.length;
}
result = winreg_get_printer_secdesc(info2,