1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

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
This commit is contained in:
Jeremy Allison 2011-01-18 14:00:44 -08:00
parent 93733e4e31
commit 7754b75065

View File

@ -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,