summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/printing/load.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/printing/load.c b/source3/printing/load.c
index dd5d4ea277..4f1bb88a99 100644
--- a/source3/printing/load.c
+++ b/source3/printing/load.c
@@ -32,6 +32,10 @@ static void add_auto_printers(void)
char *saveptr;
if (pnum < 0)
+ if (process_registry_service(PRINTERS_NAME))
+ pnum = lp_servicenumber(PRINTERS_NAME);
+
+ if (pnum < 0)
return;
if ((str = SMB_STRDUP(lp_auto_services())) == NULL)