diff -r d7c1885c0106 -r b41fc9c39ca7 kernel/eka/drivers/ecomm/d_comm.cpp --- a/kernel/eka/drivers/ecomm/d_comm.cpp Fri Jun 18 18:06:39 2010 +0100 +++ b/kernel/eka/drivers/ecomm/d_comm.cpp Sat Jun 19 07:49:33 2010 +0100 @@ -933,7 +933,7 @@ { // Replace bad character if (iConfig.iParityError==KConfigParityErrorReplaceChar) - c = c & ~(0xff|KReceiveIsrParityError) | iConfig.iParityErrorChar; + c = (c & ~(0xff|KReceiveIsrParityError)) | iConfig.iParityErrorChar; // Ignore parity error if (iConfig.iParityError==KConfigParityErrorIgnore) c = c & ~KReceiveIsrParityError;