Changeset 42004 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Jul 3, 2012 5:19:38 PM (12 years ago)
- Location:
- trunk/src/VBox/Additions/common/VBoxGuestLib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuestLib/Init.cpp
r41852 r42004 283 283 284 284 vbglTerminateCommon (); 285 vbglDriverClose(&g_vbgldata.driver); 285 /* driver open could fail, which does not prevent VbglInit from succeeding, 286 * close the driver only if it is opened */ 287 if (vbglDriverIsOpened(&g_vbgldata.driver)) 288 vbglDriverClose(&g_vbgldata.driver); 286 289 RTSemFastMutexDestroy(g_vbgldata.mutexDriverInit); 287 290 g_vbgldata.mutexDriverInit = NIL_RTSEMFASTMUTEX; -
trunk/src/VBox/Additions/common/VBoxGuestLib/SysHlp.cpp
r33540 r42004 170 170 # endif 171 171 172 bool vbglDriverIsOpened (VBGLDRIVER *pDriver) 173 { 174 # ifdef RT_OS_WINDOWS 175 return pDriver->pFileObject != NULL; 176 # elif defined (RT_OS_OS2) 177 return pDriver->u32Session != UINT32_MAX; 178 # else 179 return pDriver->pvOpaque != NULL; 180 # endif 181 } 182 172 183 int vbglDriverOpen (VBGLDRIVER *pDriver) 173 184 { -
trunk/src/VBox/Additions/common/VBoxGuestLib/SysHlp.h
r41430 r42004 88 88 89 89 /** 90 * Answers whether the VBoxGuest driver is opened 91 * 92 * @param pDriver Pointer to the driver structure. 93 * 94 * @return true - if opened, false - otherwise 95 */ 96 bool vbglDriverIsOpened (VBGLDRIVER *pDriver); 97 98 /** 90 99 * Call VBoxGuest driver. 91 100 *
Note:
See TracChangeset
for help on using the changeset viewer.