Changeset 7463 for trunk/src/kernel32/hmcomm.cpp
- Timestamp:
- Nov 27, 2001, 1:33:23 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/hmcomm.cpp
r7458 r7463 1 /* $Id: hmcomm.cpp,v 1.1 5 2001-11-26 17:16:24sandervl Exp $ */1 /* $Id: hmcomm.cpp,v 1.16 2001-11-27 12:33:23 sandervl Exp $ */ 2 2 3 3 /* … … 104 104 BOOL HMDeviceCommClass::FindDevice(LPCSTR lpClassDevName, LPCSTR lpDeviceName, int namelength) 105 105 { 106 if(namelength > 5) 107 return FALSE; //can't be com name 106 dprintf(("HMDeviceCommClass::FindDevice %s %s", lpClassDevName, lpDeviceName)); 107 108 if(namelength > 5) { 109 if(lstrncmpA(lpDeviceName, "\\\\.\\", 4) != 0) { 110 return FALSE; //can't be com name 111 } 112 lpDeviceName += 4; //skip prefix 113 } 108 114 109 115 //first 3 letters 'COM'? … … 141 147 142 148 if(strlen(lpFileName) > 5) { 143 return ERROR_INVALID_PARAMETER; //safety check (unnecessary..) 144 } 149 lpFileName += 4; //skip prefix 150 } 151 145 152 pHMHandleData->hHMHandle = 0; 146 153 … … 1242 1249 &mdm,ulPLen,&ulPLen, 1243 1250 &COMErr,ulDLen,&ulDLen); 1251 dprintf(("CLRRTS: rc = %d, Comm error %x", rc, COMErr)); 1244 1252 break; 1245 1253 case SETDTR: … … 1251 1259 &mdm,ulPLen,&ulPLen, 1252 1260 &COMErr,ulDLen,&ulDLen); 1261 dprintf(("SETDTR: rc = %d, Comm error %x", rc, COMErr)); 1253 1262 break; 1254 1263 case SETRTS: … … 1260 1269 &mdm,ulPLen,&ulPLen, 1261 1270 &COMErr,ulDLen,&ulDLen); 1271 dprintf(("SETRTS: rc = %d, Comm error %x", rc, COMErr)); 1262 1272 break; 1263 1273 case SETXOFF:
Note:
See TracChangeset
for help on using the changeset viewer.