diff options
-rw-r--r-- | source3/rpc_server/srv_spoolss_nt.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c index 7f4ff97ba8..171953b6ab 100644 --- a/source3/rpc_server/srv_spoolss_nt.c +++ b/source3/rpc_server/srv_spoolss_nt.c @@ -8066,15 +8066,20 @@ WERROR _spoolss_addprinterdriverex(pipes_struct *p, SPOOL_Q_ADDPRINTERDRIVEREX * static WERROR getprinterdriverdir_level_1(TALLOC_CTX *mem_ctx, const char *servername, - const char *long_archi, + const char *environment, struct spoolss_DriverDirectoryInfo1 *info1, uint32_t offered, uint32_t *needed) { char *path = NULL; const char *pservername = NULL; + const char *long_archi = SPOOLSS_ARCHITECTURE_NT_X86; const char *short_archi; + if (environment) { + long_archi = environment; + } + pservername = canon_servername(servername); if ( !is_myname_or_ipaddr(pservername)) |