Esme Povirk (@madewokherd) commented about dlls/sane.ds/ui.c:
tickLast = tickNow;
/* Update progress bar */ - SendDlgItemMessageA(dialog, IDC_PROGRESS, PBM_SETPOS, progress, 0); + SendDlgItemMessageW(dialog, IDC_PROGRESS, PBM_SETPOS, progress, 0);
/* Perform message handling */ - while (PeekMessageA(&msg, NULL, 0, 0, PM_REMOVE)) + while (PeekMessageW(&msg, NULL, 0, 0, PM_REMOVE)) { - if (!IsDialogMessageA(dialog, &msg)) + if (!IsDialogMessageW(dialog, &msg)) { TranslateMessage(&msg); - DispatchMessageA(&msg); + DispatchMessageW(&msg);
Please move this to the commit that introduced these calls. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9530#note_123325