mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
Use the appropriate boolean constants.
Michael (This used to be commit 45e3e2451adc1490b62d39d486c169ad53e1d3f3)
This commit is contained in:
parent
434f0bcb02
commit
92b1ef15df
@ -64,14 +64,14 @@ done:
|
||||
*/
|
||||
bool libnet_smbconf_key_exists(const char *subkeyname)
|
||||
{
|
||||
bool ret = False;
|
||||
bool ret = false;
|
||||
WERROR werr = WERR_OK;
|
||||
TALLOC_CTX *mem_ctx = talloc_stackframe();
|
||||
struct registry_key *key = NULL;
|
||||
|
||||
werr = libnet_smbconf_open_path_q(mem_ctx, subkeyname, REG_KEY_READ, &key);
|
||||
if (W_ERROR_IS_OK(werr)) {
|
||||
ret = True;
|
||||
ret = true;
|
||||
}
|
||||
|
||||
TALLOC_FREE(mem_ctx);
|
||||
@ -81,14 +81,14 @@ bool libnet_smbconf_key_exists(const char *subkeyname)
|
||||
static bool libnet_smbconf_value_exists(struct registry_key *key,
|
||||
const char *param)
|
||||
{
|
||||
bool ret = False;
|
||||
bool ret = false;
|
||||
WERROR werr = WERR_OK;
|
||||
TALLOC_CTX *ctx = talloc_stackframe();
|
||||
struct registry_value *value = NULL;
|
||||
|
||||
werr = reg_queryvalue(ctx, key, param, &value);
|
||||
if (W_ERROR_IS_OK(werr)) {
|
||||
ret = True;
|
||||
ret = true;
|
||||
}
|
||||
|
||||
TALLOC_FREE(ctx);
|
||||
|
Loading…
x
Reference in New Issue
Block a user