s3-talloc Change TALLOC_ARRAY() to talloc_array()
[samba.git] / source3 / rpc_server / winreg / srv_winreg_nt.c
index b97c1e3f41ee2bfe3dc27d590d6d09d685c3e409..6fee5b6acd944e30f7609e496e4cea1eda57817e 100644 (file)
 /* Implementation of registry functions. */
 
 #include "includes.h"
+#include "ntdomain.h"
 #include "../librpc/gen_ndr/srv_winreg.h"
 #include "registry.h"
 #include "registry/reg_api.h"
 #include "registry/reg_api_regf.h"
 #include "registry/reg_perfcount.h"
 #include "rpc_misc.h"
+#include "auth.h"
+#include "lib/privileges.h"
+#include "libcli/security/secdesc.h"
 
 #undef DBGC_CLASS
 #define DBGC_CLASS DBGC_RPC_SRV
@@ -538,7 +542,7 @@ WERROR _winreg_InitiateSystemShutdownEx(struct pipes_struct *p,
                if ( (msg = talloc_strdup(p->mem_ctx, r->in.message->string )) == NULL ) {
                        return WERR_NOMEM;
                }
-               chkmsg = TALLOC_ARRAY(p->mem_ctx, char, strlen(msg)+1);
+               chkmsg = talloc_array(p->mem_ctx, char, strlen(msg)+1);
                if (!chkmsg) {
                        return WERR_NOMEM;
                }