spoolss: allow to set server architecture via parametric option.
authorGünther Deschner <gd@samba.org>
Thu, 11 Feb 2010 12:07:38 +0000 (13:07 +0100)
committerGünther Deschner <gd@samba.org>
Thu, 11 Feb 2010 12:29:59 +0000 (13:29 +0100)
This allows to set "spoolss:architecture = 'Windows x64'" for debugging purpose.

Guenther

source3/rpc_server/srv_spoolss_nt.c

index 882193aaef6ae1e0cbf513782f6ff6d6783d36bf..5f431c65bc29d47082e192fdeeb8a31b3f8946e7 100644 (file)
@@ -2270,8 +2270,8 @@ static WERROR getprinterdata_printer_server(TALLOC_CTX *mem_ctx,
 
        if (!StrCaseCmp(value, "Architecture")) {
                *type = REG_SZ;
-
-               data->string = talloc_strdup(mem_ctx, "Windows NT x86");
+               data->string = talloc_strdup(mem_ctx,
+                       lp_parm_const_string(GLOBAL_SECTION_SNUM, "spoolss", "architecture", SPOOLSS_ARCHITECTURE_NT_X86));
                W_ERROR_HAVE_NO_MEMORY(data->string);
 
                return WERR_OK;