.
D 2003-10-08T00:10:02
J assignee andreas_kupries
J cmimetype text/plain
J comment The\sWindows\sGetFileType()\scommand\sincorrectly\sreturns\nFILE_TYPE_UNKNOWN\sfor\sa\scom\sport\swhen\susing\sa\s"KeySpan\nhigh\sspeed\sUSB\sserial\sport"\sdevice.\s\sAs\sa\sresult,\sthe\nchannel\slogic\sdoesn't\srealize\sthat\sthe\sport\sis\sin\sfact\na\sserial\sport.\s\n\nThe\sattached\spatch\sadds\sa\snew\scondition\swhen\ndetermining\sthe\sfile\stype,\swhere\sGetFileType()\sreturns\nFILE_TYPE_UNKNOWN,\sbut\sthere\sis\sno\serror,\sthe\shandle\sis\nchecked\sagainst\sa\sserial\sport\sand\sconsole\sanyways.\s\n(It's\snot\sclear\sif\sthe\sconsole\swould\sever\sfall\sinto\nthis\scase,\sbut\sit\sdoesn't\shurt).\s\sWith\sthis\schange,\sthe\nUSB\sserial\sport\sis\scorrectly\sidentified\sas\sa\sCOM\sport\nand\sthe\sserial\sport-only\sfconfigure\soptions\swork\sas\nexpected.\n\nIn\saddition\sto\sthe\sabove\sfix,\sthis\slogic\swas\sduplicated\nin\stwo\splaces,\sTclpOpenFileChannel()\sand\nTcl_MakeFileChannel().\s\sThe\slogic\swas\sextracted\sfrom\nboth\splaces\sand\scombined\sinto\sa\snew\sfile\sstatic\nfunction\sFileGetType().
J foundin None
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 25.\sChannel\sSystem
J title misidentified\swindows\scom\sport
J type Patch
K 819667ffffffffffffffffffffffffffffffffff
U nobody
Z bc7d02b71f280285bfb2511ef3bd66e9