diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-05-28 22:59:13 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-05-28 22:59:13 +0000 |
commit | 0c396eef79b83d7ecb99b63d5b6592f60ed9c276 (patch) | |
tree | 4cd986f75db2c27c7cd2d6c143e92f8f917c2f6f /source3/rpc_server | |
parent | 2d066492d547ec69c4ff62b98e502dd0c2938017 (diff) | |
download | samba-0c396eef79b83d7ecb99b63d5b6592f60ed9c276.tar.gz samba-0c396eef79b83d7ecb99b63d5b6592f60ed9c276.tar.bz2 samba-0c396eef79b83d7ecb99b63d5b6592f60ed9c276.zip |
fixed return error code that had 0xC with not enough zeros
(This used to be commit d859de2870d6524f4ff58a059469fe65c1b37940)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/srv_reg.c | 10 |
1 files 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 */ |