Alexandre Julliard (@julliard) commented about dlls/sane.ds/ui.c:
+ 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; + } + + if (RegOpenKeyExA( HKEY_CURRENT_USER, reg_path, 0, KEY_ALL_ACCESS, &h_key)==ERROR_SUCCESS) + { + /* Determine the order in which options shall be set in sane */ + opt_order = malloc((optcount+1) * sizeof(int)); + if (!opt_order) + { + ERR("Out of memory allocating opt_order\n"); That indentation style looks strange, could you please follow the style of the rest of the file?
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/9479#note_122938