Commit d13e6a9a authored by Gerson Kurz's avatar Gerson Kurz Committed by Alexandre Julliard

Parity settings were not set properly in BuildCommDCBAndTimeouts()

because of an off-by-one error.
parent 9dea5b3a
......@@ -297,7 +297,7 @@ BOOL WINAPI BuildCommDCBAndTimeoutsA(
}
if (!strncmp("parity=",ptr,7)) {
lpdcb->fParity = TRUE;
switch (ptr[8]) {
switch (ptr[7]) {
case 'N':case 'n':
lpdcb->fParity = FALSE;
lpdcb->Parity = NOPARITY;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment