Esme Povirk (@madewokherd) commented about dlls/sane.ds/ui.c:
{ case WM_INITDIALOG: {
SetDlgItemTextA(hwnd, IDC_MANUFACTURER , activeDS.identity.Manufacturer);SetDlgItemTextA(hwnd, IDC_PRODUCTFAMILY, activeDS.identity.ProductFamily);SetDlgItemTextA(hwnd, IDC_PRODUCTNAME , activeDS.identity.ProductName);
WCHAR buffer[34];MultiByteToWideChar( CP_UNIXCP, 0, activeDS.identity.Manufacturer, -1, buffer, ARRAY_SIZE(buffer) );SetDlgItemTextW(hwnd, IDC_MANUFACTURER , buffer);MultiByteToWideChar( CP_UNIXCP, 0, activeDS.identity.ProductFamily, -1, buffer, ARRAY_SIZE(buffer) );SetDlgItemTextW(hwnd, IDC_PRODUCTFAMILY, buffer);MultiByteToWideChar( CP_UNIXCP, 0, activeDS.identity.ProductName, -1, buffer, ARRAY_SIZE(buffer) );SetDlgItemTextW(hwnd, IDC_PRODUCTNAME , buffer);
Please move this to the commit that introduced these calls.