summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-09-08 00:28:07 +0000
committerJeremy Allison <jra@samba.org>2000-09-08 00:28:07 +0000
commitf4ae5a6e389aa64782986ba6eed4bb1e31f1cb71 (patch)
tree521fc8b1a09e7a706974b5fee8016d4b68f5cd87 /source3
parent8808c4e6c8da17dbb6f173d4694aa58e4443e893 (diff)
downloadsamba-f4ae5a6e389aa64782986ba6eed4bb1e31f1cb71.tar.gz
samba-f4ae5a6e389aa64782986ba6eed4bb1e31f1cb71.tar.bz2
samba-f4ae5a6e389aa64782986ba6eed4bb1e31f1cb71.zip
Win32 API is explicit that EnumPrinterData returns ERROR_MORE_DATA not
ERROR_INSUFICIENT_BUFFER when working out what space is needed. This fix gives us the same return that WinNT does. Jeremy. (This used to be commit a87f6277b1faa1ea492f31add4ce33556bdf3695)
Diffstat (limited to 'source3')
-rw-r--r--source3/include/smb.h1
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/source3/include/smb.h b/source3/include/smb.h
index 414ac930bb..c869650373 100644
--- a/source3/include/smb.h
+++ b/source3/include/smb.h
@@ -180,6 +180,7 @@ implemented */
#define ERROR_INSUFFICIENT_BUFFER (122)
#define ERROR_INVALID_NAME (123)
#define ERROR_INVALID_LEVEL (124)
+#define ERROR_MORE_DATA (234)
#define ERROR_NO_MORE_ITEMS (259)
#define ERROR_EAS_DIDNT_FIT (275) /* Extended attributes didn't fit */
#define ERROR_EAS_NOT_SUPPORTED (282) /* Extended attributes not supported */
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 99ead42ffd..71df03cd08 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -882,7 +882,7 @@ uint32 _spoolss_getprinterdata(POLICY_HND *handle, UNISTR2 *valuename,
}
if (*needed > *out_size)
- return ERROR_INSUFFICIENT_BUFFER;
+ return ERROR_MORE_DATA;
else
return NT_STATUS_NO_PROBLEMO;
}