Changeset 45061 in vbox for trunk/src/VBox/Devices/Serial/DrvHostSerial.cpp
- Timestamp:
- Mar 18, 2013 2:09:03 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 84336
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Serial/DrvHostSerial.cpp
r44528 r45061 1070 1070 1071 1071 /* Empty the send queue */ 1072 RTSemEventDestroy(pThis->SendSem); 1073 pThis->SendSem = NIL_RTSEMEVENT; 1072 if (pThis->SendSem != NIL_RTSEMEVENT) 1073 { 1074 RTSemEventDestroy(pThis->SendSem); 1075 pThis->SendSem = NIL_RTSEMEVENT; 1076 } 1074 1077 1075 1078 int rc; … … 1092 1095 } 1093 1096 # endif 1094 rc = RTFileClose(pThis->hDeviceFile); AssertRC(rc); 1095 pThis->hDeviceFile = NIL_RTFILE; 1097 if (pThis->hDeviceFile != NIL_RTFILE) 1098 { 1099 rc = RTFileClose(pThis->hDeviceFile); AssertRC(rc); 1100 pThis->hDeviceFile = NIL_RTFILE; 1101 } 1096 1102 1097 1103 #elif defined(RT_OS_WINDOWS) … … 1136 1142 pThis->hDeviceFile = INVALID_HANDLE_VALUE; 1137 1143 #endif 1144 pThis->SendSem = NIL_RTSEMEVENT; 1138 1145 /* IBase. */ 1139 1146 pDrvIns->IBase.pfnQueryInterface = drvHostSerialQueryInterface; … … 1143 1150 pThis->ICharConnector.pfnSetModemLines = drvHostSerialSetModemLines; 1144 1151 pThis->ICharConnector.pfnSetBreak = drvHostSerialSetBreak; 1145 1146 /** @todo Initialize all members with NIL values!! The destructor is ALWAYS called. */1147 1152 1148 1153 /*
Note:
See TracChangeset
for help on using the changeset viewer.