summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/rpc_server/spoolss/dcesrv_spoolss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/rpc_server/spoolss/dcesrv_spoolss.c b/source4/rpc_server/spoolss/dcesrv_spoolss.c
index e3f4279669..8fefb9d6df 100644
--- a/source4/rpc_server/spoolss/dcesrv_spoolss.c
+++ b/source4/rpc_server/spoolss/dcesrv_spoolss.c
@@ -966,7 +966,7 @@ static WERROR spoolss_OpenPrinterEx(struct dcesrv_call_state *dce_call, TALLOC_C
/* Printername must start with \\ */
- if (!strnequal(r->in.printername, "\\\\", 2))
+ if (strncmp(r->in.printername, "\\\\", 2) == 0)
return WERR_INVALID_PARAM;
if (strchr_m(r->in.printername + 2, '\\'))