summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorDavid Disseldorp <ddiss@samba.org>2012-01-22 04:21:33 +0100
committerDavid Disseldorp <ddiss@samba.org>2012-01-22 05:03:36 +0100
commitc3a7573a849bfbc88feed43f12b6bdc71300ab0a (patch)
treee93197640d6695d455fa8db8568c70cef4d19306 /source3/rpc_server
parentd65f33de1d14be22a159211f0c835b6fe170cc14 (diff)
downloadsamba-c3a7573a849bfbc88feed43f12b6bdc71300ab0a.tar.gz
samba-c3a7573a849bfbc88feed43f12b6bdc71300ab0a.tar.bz2
samba-c3a7573a849bfbc88feed43f12b6bdc71300ab0a.zip
s3-spoolss: fix incorrect error check type
NT_STATUS_IS_OK used to check WERROR type. Autobuild-User: David Disseldorp <ddiss@samba.org> Autobuild-Date: Sun Jan 22 05:03:36 CET 2012 on sn-devel-104
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/spoolss/srv_spoolss_nt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/spoolss/srv_spoolss_nt.c b/source3/rpc_server/spoolss/srv_spoolss_nt.c
index c691b4a1f5..ed5edcc0ba 100644
--- a/source3/rpc_server/spoolss/srv_spoolss_nt.c
+++ b/source3/rpc_server/spoolss/srv_spoolss_nt.c
@@ -2270,7 +2270,7 @@ WERROR _spoolss_DeletePrinterDriverEx(struct pipes_struct *p,
found = true;
status = spoolss_dpd_version(tmp_ctx, p, r, b, info);
- if (!NT_STATUS_IS_OK(status)) {
+ if (!W_ERROR_IS_OK(status)) {
DEBUG(0, ("failed to delete driver with version %d\n",
drv_cversion[i]));
goto done;