summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-04-26 21:02:12 +0200
committerGünther Deschner <gd@samba.org>2010-05-05 18:17:32 +0200
commited3852c2c2390c4817f76667d7605aada74d8666 (patch)
tree3d178a2773051a2aa84c12e0c0178f0bc7bc9d82 /source3
parent83e324c4177f7c493c7181c8f81f6f1e02a7ad95 (diff)
downloadsamba-ed3852c2c2390c4817f76667d7605aada74d8666.tar.gz
samba-ed3852c2c2390c4817f76667d7605aada74d8666.tar.bz2
samba-ed3852c2c2390c4817f76667d7605aada74d8666.zip
s3-spoolss: make sure to return success in winreg_get_driver_list() for a
non-existing architecture / version combination. Guenther
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_spoolss_util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_spoolss_util.c b/source3/rpc_server/srv_spoolss_util.c
index ecb583c3e4..afe86caf76 100644
--- a/source3/rpc_server/srv_spoolss_util.c
+++ b/source3/rpc_server/srv_spoolss_util.c
@@ -4026,6 +4026,9 @@ WERROR winreg_get_driver_list(TALLOC_CTX *mem_ctx,
TALLOC_CTX *tmp_ctx;
WERROR result;
+ *num_drivers = 0;
+ *drivers_p = NULL;
+
ZERO_STRUCT(hive_hnd);
ZERO_STRUCT(key_hnd);
@@ -4049,6 +4052,7 @@ WERROR winreg_get_driver_list(TALLOC_CTX *mem_ctx,
DEBUG(5, ("winreg_get_driver_list: "
"Could not open key (%s,%u): %s\n",
architecture, version, win_errstr(result)));
+ result = WERR_OK;
goto done;
}