diff options
author | David Disseldorp <ddiss@suse.de> | 2010-11-05 15:24:22 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-11-10 15:23:22 +0100 |
commit | 1c579318ae2d2480ee4cc998443c0d1661b39846 (patch) | |
tree | 3eee6db1d778d0caa75d2a17ab03518d854351f4 /source4/include/includes.h | |
parent | fa0b44ed9c31baf19c70aa47a25233c947c0ae05 (diff) | |
download | samba-1c579318ae2d2480ee4cc998443c0d1661b39846.tar.gz samba-1c579318ae2d2480ee4cc998443c0d1661b39846.tar.bz2 samba-1c579318ae2d2480ee4cc998443c0d1661b39846.zip |
s3-spoolss: fix spoolss GetPrinterData behaviour
Windows sends spoolss GetPrinterData requests with an offered buffer
size of zero, Model and TrayFormTable data is commonly requested in
this way.
Samba's GetPrinterData response for the above case includes the correct
error code (WERR_MORE_DATA), however the type field is set to REG_NONE.
This causes Windows (seen on XP and 2k3) to give up on the request.
If the type field is retained (not set to REG_NONE) when responding with
WERR_MORE_DATA, Windows reissues the GetPrinterData request with an
increased offered buffer size.
Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source4/include/includes.h')
0 files changed, 0 insertions, 0 deletions