ncols += 6;
dia->pad = newpad(nlines, ncols);
if (dia->pad == NULL) {
- rv = WERR_NOMEM;
+ rv = WERR_NOT_ENOUGH_MEMORY;
goto fail;
}
dia->centered = false;
}
dia->window = newwin(nlines, ncols, dia->y, dia->x);
if (dia->window == NULL) {
- rv = WERR_NOMEM;
+ rv = WERR_NOT_ENOUGH_MEMORY;
goto fail;
}
dia->panel = new_panel(dia->window);
if (dia->panel == NULL) {
- rv = WERR_NOMEM;
+ rv = WERR_NOT_ENOUGH_MEMORY;
goto fail;
}
section->window = subpad(dia->pad, section->nlines,
section->ncols, row, col);
if (section->window == NULL) {
- rv = WERR_NOMEM;
+ rv = WERR_NOT_ENOUGH_MEMORY;
goto fail;
}
SMB_ASSERT(section->ops->create != NULL);
text_field->field[0] = new_field(section->nlines, section->ncols,
0, 0, 0, 0);
if (text_field->field[0] == NULL) {
- return WERR_NOMEM;
+ return WERR_NOT_ENOUGH_MEMORY;
}
set_field_back(text_field->field[0], A_REVERSE);
set_field_opts(text_field->field[0], text_field->opts);
text_field->form = new_form(text_field->field);
if (text_field->form == NULL) {
- return WERR_NOMEM;
+ return WERR_NOT_ENOUGH_MEMORY;
}
set_form_win(text_field->form, dia->window);
talloc_array_length(buf) +
length + padding + 1);
if (buf == NULL) {
- return WERR_NOMEM;
+ return WERR_NOT_ENOUGH_MEMORY;
}
memcpy(&buf[idx], *arrayp, length);
idx += length;
hexedit->buf = hexedit_new(dia, section->window, NULL,
HEXEDIT_MIN_SIZE);
if (hexedit->buf == NULL) {
- return WERR_NOMEM;
+ return WERR_NOT_ENOUGH_MEMORY;
}
hexedit_refresh(hexedit->buf);
}
tmp = talloc_asprintf(dia, "%u", (unsigned)v);
if (tmp == NULL) {
- return WERR_NOMEM;
+ return WERR_NOT_ENOUGH_MEMORY;
}
dialog_section_text_field_set(data, tmp);
talloc_free(tmp);
const char *s;
if (!pull_reg_sz(dia, &edit->vitem->data, &s)) {
- return WERR_NOMEM;
+ return WERR_NOT_ENOUGH_MEMORY;
}
dialog_section_text_field_set(data, s);
break;
const char **array;
if (!pull_reg_multi_sz(dia, &edit->vitem->data, &array)) {
- return WERR_NOMEM;
+ return WERR_NOT_ENOUGH_MEMORY;
}
return dialog_section_text_field_set_lines(dia, data, array);
}
buf = dialog_section_text_field_get(dia, data);
if (!buf || !push_reg_sz(dia, &blob, buf)) {
- rv = WERR_NOMEM;
+ rv = WERR_NOT_ENOUGH_MEMORY;
}
break;
}
lines = dialog_section_text_field_get_lines(dia, data);
if (!lines || !push_reg_multi_sz(dia, &blob, lines)) {
- rv = WERR_NOMEM;
+ rv = WERR_NOT_ENOUGH_MEMORY;
}
break;
}
SMB_ASSERT(item != NULL);
tmp = talloc_asprintf(list, "%s%s", prefix, item);
if (tmp == NULL) {
- return WERR_NOMEM;
+ return WERR_NOT_ENOUGH_MEMORY;
}
put_item(list, list->pad, col, tmp, 0);
talloc_free(tmp);
list->nrows = data_get_row_count(list);
list->pad = newpad(MAX(list->nrows, 1), list->window_width);
if (list->pad == NULL) {
- return WERR_NOMEM;
+ return WERR_NOT_ENOUGH_MEMORY;
}
/* add the column headers to the window and render all rows to