From c4013df0c18779191d124dcb3ee35499900b54e0 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Fri, 15 Sep 2006 18:32:43 +0000 Subject: r18560: * Add in the winreg and initshutdown IDL files * rename PI_SHUTDOWN from include/smb.h to PI_INITSHUTDOWN for compatibility with pidl libndr output (This used to be commit 23a882861311d9d6ca45af1bfcc90d05846ba3a9) --- source3/libmsrpc/cac_winreg.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'source3/libmsrpc') diff --git a/source3/libmsrpc/cac_winreg.c b/source3/libmsrpc/cac_winreg.c index 91db33d295..aa20dcff8c 100644 --- a/source3/libmsrpc/cac_winreg.c +++ b/source3/libmsrpc/cac_winreg.c @@ -965,15 +965,15 @@ int cac_Shutdown(CacServerHandle *hnd, TALLOC_CTX *mem_ctx, struct Shutdown *op) } /*initialize for winreg pipe if we have to*/ - if(!hnd->_internal.pipes[PI_SHUTDOWN]) { - if(!(pipe_hnd = cli_rpc_pipe_open_noauth(srv->cli, PI_SHUTDOWN, &(hnd->status)))) { + if(!hnd->_internal.pipes[PI_INITSHUTDOWN]) { + if(!(pipe_hnd = cli_rpc_pipe_open_noauth(srv->cli, PI_INITSHUTDOWN, &(hnd->status)))) { return CAC_FAILURE; } - hnd->_internal.pipes[PI_SHUTDOWN] = True; + hnd->_internal.pipes[PI_INITSHUTDOWN] = True; } - pipe_hnd = cac_GetPipe(hnd, PI_SHUTDOWN); + pipe_hnd = cac_GetPipe(hnd, PI_INITSHUTDOWN); if(!pipe_hnd) { hnd->status = NT_STATUS_INVALID_HANDLE; return CAC_FAILURE; @@ -1006,12 +1006,12 @@ int cac_AbortShutdown(CacServerHandle *hnd, TALLOC_CTX *mem_ctx) { if(!hnd) return CAC_FAILURE; - if(!hnd->_internal.ctx || !hnd->_internal.pipes[PI_SHUTDOWN]) { + if(!hnd->_internal.ctx || !hnd->_internal.pipes[PI_INITSHUTDOWN]) { hnd->status = NT_STATUS_INVALID_HANDLE; return CAC_FAILURE; } - pipe_hnd = cac_GetPipe(hnd, PI_SHUTDOWN); + pipe_hnd = cac_GetPipe(hnd, PI_INITSHUTDOWN); if(!pipe_hnd) { hnd->status = NT_STATUS_INVALID_HANDLE; return CAC_FAILURE; -- cgit