struct dcerpc_binding_handle *b,
const struct spoolss_DriverInfo8 *r)
{
+ const struct loadparm_substitution *lp_sub =
+ loadparm_s3_global_substitution();
int snum;
int n_services = lp_numservices();
bool in_use = false;
}
result = winreg_get_printer(mem_ctx, b,
- lp_servicename(talloc_tos(), snum),
+ lp_servicename(talloc_tos(), lp_sub, snum),
&pinfo2);
if (!W_ERROR_IS_OK(result)) {
continue; /* skip */