diff options
author | Günther Deschner <gd@samba.org> | 2011-01-19 14:39:50 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2011-01-21 10:58:20 +0100 |
commit | be884c1bfdfec24c067705af132a4d7dce807376 (patch) | |
tree | fe51947221673a10f5aa02751d77b5c39cd93cf7 | |
parent | 1f3fb30ed938d1ffdf4fbdcbc8b429becbbdb801 (diff) | |
download | samba-be884c1bfdfec24c067705af132a4d7dce807376.tar.gz samba-be884c1bfdfec24c067705af132a4d7dce807376.tar.bz2 samba-be884c1bfdfec24c067705af132a4d7dce807376.zip |
s3-spoolss: as smbtorture testing proves: devmode size is the size of the devicemode minus the driverdata extra size.
Jeremy, please check.
Guenther
-rw-r--r-- | source3/rpc_server/srv_spoolss_util.c | 2 |
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, |