Esme Povirk (@madewokherd) commented about dlls/sane.ds/ui.c:
- {
MSG msg;tickLast = tickNow;/* Update progress bar */SendDlgItemMessageA(dialog, IDC_PROGRESS, PBM_SETPOS, progress, 0);/* Perform message handling */while (PeekMessageA(&msg, NULL, 0, 0, PM_REMOVE)){if (!IsDialogMessageA(dialog, &msg)){TranslateMessage(&msg);DispatchMessageA(&msg);}}
We should use the W versions here too.