Changeset 6353 in vbox for trunk/src/VBox/Additions/common
- Timestamp:
- Jan 15, 2008 9:17:05 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest.cpp
r6033 r6353 1001 1001 static unsigned s_cErrors = 0; 1002 1002 if (s_cErrors++ > 32) 1003 LogRel(("VBoxGuestCommonIOCtl: HGCM_CALL: u32Client=%RX32\n", u32ClientId));1003 LogRel(("VBoxGuestCommonIOCtl: HGCM_CALL: Invalid handle. u32Client=%RX32\n", u32ClientId)); 1004 1004 return VERR_INVALID_HANDLE; 1005 1005 } … … 1019 1019 *pcbDataReturned = cbActual; 1020 1020 } 1021 Log(("VBoxGuestCommonIOCtl: HGCM_CALL: Failed. rc=%Rrc.\n", rc)); 1021 1022 return rc; 1022 1023 } … … 1142 1143 */ 1143 1144 int rc = VINF_SUCCESS; 1145 #ifdef RT_OS_SOLARIS 1146 /* The other way of determining the request type does not work on Solaris (and perhaps on Linux too) 1147 * as the range between the request types overlap when comparing all bits of the function code... 1148 */ 1149 if (VBOXGUEST_IOCTL_NUMBER(iFunction) == VBOXGUEST_IOCTL_NUMBER(VBOXGUEST_IOCTL_VMMREQUEST(0))) 1150 #else 1144 1151 if ( iFunction >= VBOXGUEST_IOCTL_VMMREQUEST(0) 1145 1152 && iFunction <= VBOXGUEST_IOCTL_VMMREQUEST(0xfff)) /** @todo find a better way to do this*/ 1153 #endif 1146 1154 { 1147 1155 CHECKRET_MIN_SIZE("VMMREQUEST", sizeof(VMMDevRequestHeader)); … … 1152 1160 * This one is tricky and can be done later. 1153 1161 */ 1162 # ifdef RT_OS_SOLARIS 1163 else if (VBOXGUEST_IOCTL_NUMBER(iFunction) == VBOXGUEST_IOCTL_NUMBER(VBOXGUEST_IOCTL_HGCM_CALL(0))) 1164 #else 1154 1165 else if ( iFunction >= VBOXGUEST_IOCTL_HGCM_CALL(0) 1155 1166 && iFunction <= VBOXGUEST_IOCTL_HGCM_CALL(0xfff)) 1167 #endif 1156 1168 { 1157 1169 CHECKRET_MIN_SIZE("HGCM_CALL", sizeof(VBoxGuestHGCMCallInfo));
Note:
See TracChangeset
for help on using the changeset viewer.