Add so the syntax like COM1 96,... (currently only the 'normal' syntax COM1: 96,... is supported). Also merges the fix sent for bug #371 by zdenek@datacrunch.net ChangeLog: * dlls/kernel/comm.c Misc fixes to DCB building from command line
Index: dlls/kernel/comm.c =================================================================== RCS file: /home/wine/wine/dlls/kernel/comm.c,v retrieving revision 1.45 diff -u -r1.45 comm.c --- dlls/kernel/comm.c 2001/11/30 18:46:43 1.45 +++ dlls/kernel/comm.c 2001/12/03 16:15:17 @@ -105,7 +105,7 @@ if (!*(device+4)) return FALSE; - if (*(device+4) != ':') + if ((*(device+4) != ':') && (*(device+4) != ' ')) return FALSE; strcpy(temp,device+5); @@ -165,7 +165,10 @@ break; case 'O': lpdcb->Parity = ODDPARITY; - break; + break; + case 'S': + lpdcb->Parity = SPACEPARITY; + break; default: WARN("Unknown parity `%c'!\n", *ptr); return FALSE; @@ -260,7 +263,7 @@ ERR("BUG! COM0 can't exist!\n"); return FALSE; } - if (*(device+4)!=':') + if ((*(device+4)!=':') && (*(device+4)!=' ')) return FALSE; temp=(LPSTR)(device+5); } else @@ -311,6 +314,9 @@ case 'M':case 'm': lpdcb->Parity = MARKPARITY; break; + case 'S':case 's': + lpdcb->Parity = SPACEPARITY; + break; } flag=1; }