Changeset 10433 for trunk/src/kernel32/hmcomm.cpp
- Timestamp:
- Jan 30, 2004, 11:17:00 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/hmcomm.cpp
r10185 r10433 1 /* $Id: hmcomm.cpp,v 1.4 0 2003-07-28 11:35:31 sandervlExp $ */1 /* $Id: hmcomm.cpp,v 1.41 2004-01-30 22:16:59 bird Exp $ */ 2 2 3 3 /* … … 62 62 static DWORD CommWriteIOHandler(LPASYNCIOREQUEST lpRequest, DWORD *lpdwResult, DWORD *lpdwTimeOut); 63 63 static DWORD CommPollIOHandler(LPASYNCIOREQUEST lpRequest, DWORD *lpdwResult, DWORD *lpdwTimeOut); 64 #ifdef DEBUG 64 #ifdef DEBUG_LOGGING 65 65 static char *DebugCommEvent(DWORD dwEvents); 66 66 static char *DebugModemStatus(DWORD dwModemStatus); … … 249 249 comnr = comname[3] - '1'; 250 250 251 if(handler[comnr] == NULL) 251 if(handler[comnr] == NULL) 252 252 { 253 253 try { … … 445 445 dwEvent |= (COMEvt&0x0080)? EV_ERR:0; 446 446 dwEvent |= (COMEvt&0x0100)? EV_RING:0; 447 447 448 448 #ifdef DEBUG 449 449 if(dwEvent & EV_ERR) { … … 460 460 } 461 461 #endif 462 if((dwEvent & EV_RXCHAR) && (dwMask & EV_RXCHAR)) 462 if((dwEvent & EV_RXCHAR) && (dwMask & EV_RXCHAR)) 463 463 { 464 464 //check if there's really data in the in queue … … 552 552 &ulBytesWritten); 553 553 554 if(lpNumberOfBytesWritten) { 554 if(lpNumberOfBytesWritten) { 555 555 *lpNumberOfBytesWritten = (ret) ? ulBytesWritten : 0; 556 556 dprintf2(("KERNEL32:HMDeviceCommClass::WriteFile %d byte(s) written", *lpNumberOfBytesWritten)); … … 942 942 USHORT COMErr; 943 943 944 if(lpdwErrors == NULL) 944 if(lpdwErrors == NULL) 945 945 lpdwErrors = &dwError; 946 946 947 947 dprintf(("HMDeviceCommClass::ClearCommError")); 948 948 ulLen = sizeof(USHORT); … … 1666 1666 } 1667 1667 } 1668 #ifdef DEBUG 1668 #ifdef DEBUG_LOGGING 1669 1669 //****************************************************************************** 1670 1670 //****************************************************************************** … … 1672 1672 { 1673 1673 static char szCommEvents[128]; 1674 1674 1675 1675 szCommEvents[0] = 0; 1676 1676 … … 1706 1706 { 1707 1707 static char szModemStatus[128]; 1708 1708 1709 1709 szModemStatus[0] = 0; 1710 1710
Note:
See TracChangeset
for help on using the changeset viewer.