summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_ntsvcs_nt.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2011-01-31 16:40:33 +0100
committerGünther Deschner <gd@samba.org>2011-02-07 12:32:01 +0100
commit96565db5f66f791968ed354fc8f39464ff0a7e5a (patch)
tree998a39f6de96ef7f320c0ff9fe57d5a8a1a0ad81 /source3/rpc_server/srv_ntsvcs_nt.c
parent1adbbeef32b71450b6c878ea34b431d19ea39523 (diff)
downloadsamba-96565db5f66f791968ed354fc8f39464ff0a7e5a.tar.gz
samba-96565db5f66f791968ed354fc8f39464ff0a7e5a.tar.bz2
samba-96565db5f66f791968ed354fc8f39464ff0a7e5a.zip
s3-services: Migrated svcctl registry functions to winreg.
This is a bigger commit. It moves the relevant function to svc_winreg_glue. We need to use them in the same commit else we have problems with prototypes in proto.h. Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3/rpc_server/srv_ntsvcs_nt.c')
-rw-r--r--source3/rpc_server/srv_ntsvcs_nt.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_ntsvcs_nt.c b/source3/rpc_server/srv_ntsvcs_nt.c
index a948b86c21..4933cb31a5 100644
--- a/source3/rpc_server/srv_ntsvcs_nt.c
+++ b/source3/rpc_server/srv_ntsvcs_nt.c
@@ -21,6 +21,7 @@
#include "includes.h"
#include "../librpc/gen_ndr/srv_ntsvcs.h"
+#include "services/svc_winreg_glue.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_RPC_SRV
@@ -142,7 +143,10 @@ WERROR _PNP_GetDeviceRegProp(struct pipes_struct *p,
mem_ctx = talloc_stackframe();
- result = svcctl_lookup_dispname(mem_ctx, ptr, p->server_info->ptok);
+ result = svcctl_lookup_dispname(mem_ctx,
+ p->msg_ctx,
+ p->server_info,
+ ptr);
if (result == NULL) {
return WERR_GENERAL_FAILURE;
}