possible bug in serial.cpp for win32

Deniz Koprulu <[email protected]> Mon, 28 Aug 2006 06:44:25 -0700 (PDT)
Newsgroups gmane.comp.gnu.bayonne.devel
Message-ID <[email protected]>
Some debugging led me to a clue about a possible bug.

I think 
"  if(dwLength > (int)cs.cbInQue)  " 
check in the beginning of Win32 Serial::aRead should be 
"  if(Length > (int)cs.cbInQue)  ".

One supporting evidence is that the default value of dwLength
is 0 and this IF statement is redundant.




 				
---------------------------------
Get your own web address for just $1.99/1st yr. We'll help. Yahoo! Small Business.