2 Sep
2025
2 Sep
'25
10:03 p.m.
Esme Povirk (@madewokherd) commented about dlls/sane.ds/ui.c:
return FALSE; }
+static void get_option(struct option_descriptor* opt, ScannerOption* option) +{ + CHAR title[OPTION_NAME_MAX]; + WideCharToMultiByte(CP_UTF8, 0, opt->title, -1, title, sizeof(title), NULL, NULL); + lstrcpynA(option->name, title, OPTION_NAME_MAX); + option->is_enabled = opt->is_active; + option->optno = opt->optno; + + if (opt->type ==TYPE_STRING && opt->constraint_type != CONSTRAINT_NONE)
Why do we check the constraint type here? -- https://gitlab.winehq.org/wine/wine/-/merge_requests/8858#note_114589