Re: [PATCH v13 0/1] MR8778: sane.ds: Adding a window for loading and saving the scanner configuration
19 Aug
2025
19 Aug
'25
4:23 p.m.
Esme Povirk (@madewokherd) commented about dlls/sane.ds/ui.c:
+ sf = calloc( opt->size, sizeof(int) ); + sane_option_get_value(opt->optno, sf ); + if (opt->constraint.range.quant) + pos = *sf / opt->constraint.range.quant; + else + pos = MulDiv( *sf, 100, 65536 ); + option->type = opt->type; + option->value.int_val = pos; + free(sf); + } + } +} + +static BOOL save_cfg_data(HWND hwnd, WCHAR file_path[128], int type, int optno) +{ + ScannerOption *options = malloc((cntOptionsExist + 1) * sizeof(ScannerOption)); This is never freed.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/8778#note_113175
198
Age (days ago)
198
Last active (days ago)
0 comments
1 participants
participants (1)
-
Esme Povirk (@madewokherd)