Changeset 50837 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Mar 21, 2014 9:29:56 AM (11 years ago)
- Location:
- trunk/src/VBox/Additions/common/VBoxGuestLib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuestLib/HGCM.cpp
r44528 r50837 138 138 return VERR_INVALID_PARAMETER; 139 139 140 pHandleData = vbglHGCMHandleAlloc (); 141 142 rc = VINF_SUCCESS; 143 140 pHandleData = vbglHGCMHandleAlloc(); 144 141 if (!pHandleData) 145 {146 142 rc = VERR_NO_MEMORY; 147 }148 143 else 149 144 { 150 145 rc = vbglDriverOpen (&pHandleData->driver); 151 152 146 if (RT_SUCCESS(rc)) 153 147 { 154 148 rc = vbglDriverIOCtl (&pHandleData->driver, VBOXGUEST_IOCTL_HGCM_CONNECT, pData, sizeof (*pData)); 155 156 if (RT_SUCCESS(rc))149 if ( RT_SUCCESS(rc) 150 && RT_SUCCESS(pData->result)) 157 151 { 158 152 *pHandle = pHandleData; 159 } 160 else 161 { 162 vbglDriverClose (&pHandleData->driver); 153 return rc; 163 154 } 164 155 } 165 166 if (RT_FAILURE(rc))167 {168 vbglHGCMHandleFree (pHandleData);169 }170 156 } 171 157 vbglDriverClose (&pHandleData->driver); 158 vbglHGCMHandleFree (pHandleData); 172 159 return rc; 173 160 } -
trunk/src/VBox/Additions/common/VBoxGuestLib/Mouse.cpp
r42227 r50837 46 46 VBoxGuestMouseSetNotifyCallback NotifyCallback; 47 47 VBGLDRIVER *pDriver; 48 int rc; 49 50 rc = vbglGetDriver(&pDriver); 48 int rc = vbglGetDriver(&pDriver); 51 49 if (RT_FAILURE(rc)) 52 50 return rc; … … 85 83 if (RT_FAILURE(rc)) 86 84 return rc; 85 if (RT_FAILURE(Req.header.rc)) 86 return Req.header.rc; 87 87 if (pfFeatures) 88 88 *pfFeatures = Req.mouseFeatures;
Note:
See TracChangeset
for help on using the changeset viewer.