22 Jun
2024
22 Jun
'24
5:52 p.m.
Esme Povirk (@madewokherd) commented about dlls/sane.ds/options.c:
return sane_find_option(option_name, TYPE_INT, opt); }
-TW_UINT16 sane_option_probe_mode(TW_UINT16 *current, TW_UINT32 *choices, int *count) +static TW_UINT32 sane_categorize_value(const WCHAR* value, const WCHAR* const* filter[], char* categories, int buf_len) +{ + TW_UINT32 i, j; + for(i=0; filter[i]; ++i) + { + if (!*categories) + { + for(j=0; filter[i][j]; ++j) + { + if (wcsstr(filter[i][j], value))
This seems like it might be backwards to me? I think it's checking whether the filter string contains the value. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/5904#note_74145