summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}