summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/rpc_server/srv_spoolss_util.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_spoolss_util.c b/source3/rpc_server/srv_spoolss_util.c
index 56407119b5..dc861f8810 100644
--- a/source3/rpc_server/srv_spoolss_util.c
+++ b/source3/rpc_server/srv_spoolss_util.c
@@ -4126,9 +4126,10 @@ WERROR winreg_del_driver(TALLOC_CTX *mem_ctx,
}
key_name = talloc_asprintf(tmp_ctx,
- "%s\\Environments\\%s\\Drivers\\Version-%u",
+ "%s\\Environments\\%s\\Drivers\\Version-%u\\%s",
TOP_LEVEL_CONTROL_KEY,
- info8->architecture, version);
+ info8->architecture, version,
+ info8->driver_name);
if (key_name == NULL) {
result = WERR_NOMEM;
goto done;