Handle ReadIntervalTimeout=MAXDWORD special case a bit better.

This commit is contained in:
Mike McCormack 2001-12-21 19:17:33 +00:00 committed by Alexandre Julliard
parent 5d754fc958
commit 89bb3abf7d
1 changed files with 4 additions and 0 deletions

View File

@ -211,6 +211,10 @@ static int serial_get_info( struct object *obj, struct get_file_info_reply *repl
if(serial->attrib & FILE_FLAG_OVERLAPPED)
return FD_TYPE_OVERLAPPED;
if( (serial->readinterval == MAXDWORD) &&
(serial->readmult == 0) && (serial->readconst == 0) )
return FD_TYPE_DEFAULT;
return FD_TYPE_TIMEOUT;
}