From 0c396eef79b83d7ecb99b63d5b6592f60ed9c276 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 28 May 2000 22:59:13 +0000 Subject: fixed return error code that had 0xC with not enough zeros (This used to be commit d859de2870d6524f4ff58a059469fe65c1b37940) --- source3/rpc_server/srv_reg.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source3/rpc_server/srv_reg.c b/source3/rpc_server/srv_reg.c index cba24d7dfb..ea7f3ecd5d 100644 --- a/source3/rpc_server/srv_reg.c +++ b/source3/rpc_server/srv_reg.c @@ -129,12 +129,12 @@ static void reg_reply_open_entry(REG_Q_OPEN_ENTRY *q_u, if (status == 0 && find_lsa_policy_by_hnd(&(q_u->pol)) == -1) { - status = 0xC000000 | NT_STATUS_INVALID_HANDLE; + status = NT_STATUS_INVALID_HANDLE; } if (status == 0x0 && !open_lsa_policy_hnd(&pol)) { - status = 0xC000000 | NT_STATUS_TOO_MANY_SECRETS; /* ha ha very droll */ + status = NT_STATUS_TOO_MANY_SECRETS; /* ha ha very droll */ } fstrcpy(name, dos_unistrn2(q_u->uni_name.buffer, q_u->uni_name.uni_str_len)); @@ -145,13 +145,13 @@ static void reg_reply_open_entry(REG_Q_OPEN_ENTRY *q_u, /* lkcl XXXX do a check on the name, here */ if (!strequal(name, "SYSTEM\\CurrentControlSet\\Control\\ProductOptions")) { - status = 0xC000000 | NT_STATUS_ACCESS_DENIED; + status = NT_STATUS_ACCESS_DENIED; } } if (status == 0x0 && !set_lsa_policy_reg_name(&pol, name)) { - status = 0xC000000 | NT_STATUS_TOO_MANY_SECRETS; /* ha ha very droll */ + status = NT_STATUS_TOO_MANY_SECRETS; /* ha ha very droll */ } init_reg_r_open_entry(&r_u, &pol, status); @@ -198,7 +198,7 @@ static void reg_reply_info(REG_Q_INFO *q_u, if (status == 0 && find_lsa_policy_by_hnd(&(q_u->pol)) == -1) { - status = 0xC000000 | NT_STATUS_INVALID_HANDLE; + status = NT_STATUS_INVALID_HANDLE; } /* This makes the server look like a member server to clients */ -- cgit