Parity settings were not set properly in BuildCommDCBAndTimeouts()

because of an off-by-one error.
oldstable
Gerson Kurz 2001-11-12 15:49:08 +00:00 committed by Alexandre Julliard
parent 9dea5b3ac8
commit d13e6a9a93
1 changed files with 1 additions and 1 deletions

View File

@ -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;