1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-31 20:22:15 +03:00

Use NTSTATUS as return value for smb_register_*() functions and init_module()

function. Patch by metze with some minor modifications.
This commit is contained in:
Jelmer Vernooij
-
parent e112dc1641
commit bc4b51bcb2
38 changed files with 164 additions and 127 deletions

View File

@ -373,7 +373,7 @@ static BOOL api_reg_save_key(pipes_struct *p)
array of \PIPE\reg operations
********************************************************************/
int rpc_reg_init(void)
NTSTATUS rpc_reg_init(void)
{
static struct api_struct api_reg_cmds[] =
{
@ -391,6 +391,6 @@ int rpc_reg_init(void)
{ "REG_UNKNOWN_1A" , REG_UNKNOWN_1A , api_reg_unknown_1a },
{ "REG_SAVE_KEY" , REG_SAVE_KEY , api_reg_save_key }
};
return rpc_pipe_register_commands("winreg", "winreg", api_reg_cmds,
return rpc_pipe_register_commands(SMB_RPC_INTERFACE_VERSION, "winreg", "winreg", api_reg_cmds,
sizeof(api_reg_cmds) / sizeof(struct api_struct));
}