17 Nov
2025
17 Nov
'25
7:55 p.m.
Esme Povirk (@madewokherd) commented about dlls/sane.ds/ui.c:
+ + int ivalue; + char svalue[OPTION_VALUE_MAX+1]; + + snprintf(reg_path, MAX_PATH, "Software\\ScannersSettings\\%s\\%s_%s", + activeDS.identity.Manufacturer, + activeDS.identity.ProductFamily, + activeDS.identity.ProductName); + + rc = sane_option_get_value( 0, &optcount ); + if (rc != TWCC_SUCCESS) + { + ERR("SANE_LoadOptions: Unable to read number of options\n"); + return; + } + gOptCount = optcount; `gOptCount` is unused after this change and could be removed.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/9479#note_122596