Esme Povirk (@madewokherd) commented about dlls/sane.ds/ui.c:
SendMessageA(control,SBM_SETRANGE,min,max);
is_exist = load_from_reg(path, opt.type, title, &val);
if (val >= min && val <= max)
I don't think we should check this if the setting doesn't exist.