[PATCH v3 0/1] MR9968: ntdll: Report all possible serial baud rates.
This fix is necessary to allow for applications that use GetCommProperties() where the hardware device uses a baud rate \>115200. Without, these devices and applications are non-functional. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=59290 -- v3: ntdll: Report all possible serial baud rates. https://gitlab.winehq.org/wine/wine/-/merge_requests/9968
From: Myles Gray <mg@mylesgray.com> This fix is necessary to allow for applications that use GetCommProperties() where the hardware device uses a baud rate >115200. Without, these devices and applications are non-functional. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=59290 --- dlls/ntdll/unix/serial.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/ntdll/unix/serial.c b/dlls/ntdll/unix/serial.c index 7a79dd0ac6a..094331ff110 100644 --- a/dlls/ntdll/unix/serial.c +++ b/dlls/ntdll/unix/serial.c @@ -376,14 +376,15 @@ static NTSTATUS get_properties(int fd, SERIAL_COMMPROP *prop) prop->ServiceMask = SP_SERIALCOMM; prop->MaxTxQueue = 4096; prop->MaxRxQueue = 4096; - prop->MaxBaud = BAUD_115200; + prop->MaxBaud = BAUD_USER; prop->ProvSubType = PST_RS232; prop->ProvCapabilities = PCF_DTRDSR | PCF_PARITY_CHECK | PCF_RTSCTS | PCF_TOTALTIMEOUTS | PCF_INTTIMEOUTS; prop->SettableParams = SP_BAUD | SP_DATABITS | SP_HANDSHAKING | SP_PARITY | SP_PARITY_CHECK | SP_STOPBITS ; prop->SettableBaud = BAUD_075 | BAUD_110 | BAUD_134_5 | BAUD_150 | BAUD_300 | BAUD_600 | BAUD_1200 | BAUD_1800 | BAUD_2400 | BAUD_4800 | - BAUD_9600 | BAUD_19200 | BAUD_38400 | BAUD_57600 | BAUD_115200 ; + BAUD_7200 | BAUD_9600 | BAUD_14400 | BAUD_19200 | BAUD_38400 | + BAUD_56K | BAUD_57600 | BAUD_115200 | BAUD_128K | BAUD_USER ; prop->SettableData = DATABITS_5 | DATABITS_6 | DATABITS_7 | DATABITS_8 ; prop->SettableStopParity = STOPBITS_10 | STOPBITS_15 | STOPBITS_20 | PARITY_NONE | PARITY_ODD |PARITY_EVEN | PARITY_MARK | PARITY_SPACE; -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/9968
On Thu Jan 29 23:24:02 2026 +0000, Myles Gray wrote:
changed this line in [version 3 of the diff](/wine/wine/-/merge_requests/9968/diffs?diff_id=241151&start_sha=f6ae4bd023024f07e70cb5825d41cc6685302709#c475275e5048b73b965090c90f652af6434ac5de_386_386) All done, thank you so much for the attention @alexhenrie.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/9968#note_128427
The only baud that I am missing is BAUD_128K which I don't think my hardware supports, but it doesn't hurt to include that one too as you proposed.
Is there a way to test hardware support on the Unix side? Should we be doing that? -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9968#note_128429
This merge request was approved by Alex Henrie. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9968
participants (4)
-
Alex Henrie (@alexhenrie) -
Elizabeth Figura (@zfigura) -
Myles Gray -
Myles Gray (@magnix)