const REGISTRY_VALUE *value)
{
char *str_value = NULL;
+ ADS_STATUS status;
if (value->type != REG_SZ)
return False;
if (value->size && *((smb_ucs2_t *) value->data_p)) {
pull_ucs2_talloc(ctx, (void **) &str_value,
(const smb_ucs2_t *) value->data_p);
- return ADS_ERR_OK(ads_mod_str(ctx, mods, value->valuename,
- str_value));
+ status = ads_mod_str(ctx, mods, value->valuename, str_value);
+ return ADS_ERR_OK(status);
}
return True;
const REGISTRY_VALUE *value)
{
char *str_value = NULL;
+ ADS_STATUS status;
if (value->type != REG_DWORD)
return False;
str_value = talloc_asprintf(ctx, "%d", *((uint32 *) value->data_p));
- return ADS_ERR_OK(ads_mod_str(ctx, mods, value->valuename, str_value));
+ status = ads_mod_str(ctx, mods, value->valuename, str_value);
+ return ADS_ERR_OK(status);
}
/*
const REGISTRY_VALUE *value)
{
char *str_value;
+ ADS_STATUS status;
if ((value->type != REG_BINARY) || (value->size != 1))
return False;
str_value = talloc_asprintf(ctx, "%s",
*(value->data_p) ? "TRUE" : "FALSE");
- return ADS_ERR_OK(ads_mod_str(ctx, mods, value->valuename, str_value));
+ status = ads_mod_str(ctx, mods, value->valuename, str_value);
+ return ADS_ERR_OK(status);
}
/*
char **str_values = NULL;
smb_ucs2_t *cur_str = (smb_ucs2_t *) value->data_p;
uint32 size = 0, num_vals = 0, i=0;
+ ADS_STATUS status;
if (value->type != REG_MULTI_SZ)
return False;
(void **) &str_values[i],
cur_str);
- return ADS_ERR_OK(ads_mod_strlist(ctx, mods, value->valuename,
- (const char **) str_values));
+ status = ads_mod_strlist(ctx, mods, value->valuename,
+ (const char **) str_values);
+ return ADS_ERR_OK(status);
}
return True;
}