19 Aug
2025
19 Aug
'25
4:23 p.m.
Esme Povirk (@madewokherd) commented about dlls/sane.ds/ui.c:
+ BOOL is_exist = load_from_file(path, opt.type, title, &b); + + if (is_exist) + { + sane_option_set_value( i, &b, NULL ); + } + sane_option_get_value( i, &b ); + if (b) + { SendMessageA(control,BM_SETCHECK,BST_CHECKED,0); - + continue; + } + SendMessageA(control,BM_SETCHECK,BST_UNCHECKED,0); This could be simplified to `SendMessageA(control,BM_SETCHECK,b ? BST_CHECKED : BST_UNCHECKED,0);`
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/8778#note_113177