diff options
author | Günther Deschner <gd@samba.org> | 2008-02-18 12:55:35 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-02-18 12:58:43 +0100 |
commit | 5943ff68e7838be67148b1c0eef91f3c1ab66230 (patch) | |
tree | c1ce87c2d220914c156c0c32a9b8a22004658d43 /source3/rpc_server/srv_svcctl.c | |
parent | 330fe0a62a29ff994e1520dae209eb4980a7259c (diff) | |
download | samba-5943ff68e7838be67148b1c0eef91f3c1ab66230.tar.gz samba-5943ff68e7838be67148b1c0eef91f3c1ab66230.tar.bz2 samba-5943ff68e7838be67148b1c0eef91f3c1ab66230.zip |
Use pidl for _svcctl_OpenServiceW().
Note that this call did and still does panic in registry access.
Michael has an idea how to fix this.
Guenther
(This used to be commit b2fa41072ddd2aba000a33eb32ccee408d8304db)
Diffstat (limited to 'source3/rpc_server/srv_svcctl.c')
-rw-r--r-- | source3/rpc_server/srv_svcctl.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/source3/rpc_server/srv_svcctl.c b/source3/rpc_server/srv_svcctl.c index ba939ac11a..a134df8597 100644 --- a/source3/rpc_server/srv_svcctl.c +++ b/source3/rpc_server/srv_svcctl.c @@ -61,23 +61,7 @@ static bool api_svcctl_open_scmanager(pipes_struct *p) static bool api_svcctl_open_service(pipes_struct *p) { - SVCCTL_Q_OPEN_SERVICE q_u; - SVCCTL_R_OPEN_SERVICE r_u; - prs_struct *data = &p->in_data.data; - prs_struct *rdata = &p->out_data.rdata; - - ZERO_STRUCT(q_u); - ZERO_STRUCT(r_u); - - if(!svcctl_io_q_open_service("", &q_u, data, 0)) - return False; - - r_u.status = _svcctl_open_service(p, &q_u, &r_u); - - if(!svcctl_io_r_open_service("", &r_u, rdata, 0)) - return False; - - return True; + return proxy_svcctl_call(p, NDR_SVCCTL_OPENSERVICEW); } /******************************************************************* |