diff options
author | Jeremy Allison <jra@samba.org> | 2011-01-18 14:00:44 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2011-01-18 23:45:33 +0100 |
commit | 7754b75065c1e7bd3c0c6b2bf2f88394d3655a0e (patch) | |
tree | 32e571caf21df382fb56226e3f2789a5cebfdb49 | |
parent | 93733e4e316dc7f80bbc002778914b9dc09fe6d7 (diff) | |
download | samba-7754b75065c1e7bd3c0c6b2bf2f88394d3655a0e.tar.gz samba-7754b75065c1e7bd3c0c6b2bf2f88394d3655a0e.tar.bz2 samba-7754b75065c1e7bd3c0c6b2bf2f88394d3655a0e.zip |
Fix error where Windows client spoolss returns WERR_INVALID_DATA W_ERROR(0x0000000D)
on opening a printer. We can't return zero for devmode->size. Guenther please check !
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Jan 18 23:45:33 CET 2011 on sn-devel-104
-rw-r--r-- | source3/rpc_server/srv_spoolss_util.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_spoolss_util.c b/source3/rpc_server/srv_spoolss_util.c index a2c47b07fa..89cdc2dc1f 100644 --- a/source3/rpc_server/srv_spoolss_util.c +++ b/source3/rpc_server/srv_spoolss_util.c @@ -2210,6 +2210,10 @@ WERROR winreg_get_printer(TALLOC_CTX *mem_ctx, } } + if (info2->devmode) { + info2->devmode->size = ndr_size_spoolss_DeviceMode(info2->devmode, 0); + } + result = winreg_get_printer_secdesc(info2, server_info, msg_ctx, |