Changeset 10543 in vbox
- Timestamp:
- Jul 11, 2008 6:27:31 PM (17 years ago)
- Location:
- trunk/src/VBox/Additions
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest.cpp
r8360 r10543 1224 1224 * This one is tricky and can be done later. 1225 1225 */ 1226 else if (VBOXGUEST_IOCTL_STRIP_SIZE(iFunction) == VBOXGUEST_IOCTL_STRIP_SIZE(VBOXGUEST_IOCTL_HGCM_CALL (0)))1226 else if (VBOXGUEST_IOCTL_STRIP_SIZE(iFunction) == VBOXGUEST_IOCTL_STRIP_SIZE(VBOXGUEST_IOCTL_HGCM_CALL)) 1227 1227 { 1228 1228 CHECKRET_MIN_SIZE("HGCM_CALL", sizeof(VBoxGuestHGCMCallInfo)); -
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibClipboard.cpp
r10541 r10543 100 100 VbglHGCMParmUInt32Set(&Msg.formats, 0); 101 101 102 int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL (sizeof(Msg)), &Msg, sizeof(Msg));102 int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL, &Msg, sizeof(Msg)); 103 103 if (RT_SUCCESS(rc)) 104 104 { … … 150 150 VbglHGCMParmUInt32Set(&Msg.size, 0); 151 151 152 int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL (sizeof(Msg)), &Msg, sizeof(Msg));152 int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL, &Msg, sizeof(Msg)); 153 153 if (RT_SUCCESS(rc)) 154 154 { … … 188 188 VbglHGCMParmUInt32Set(&Msg.formats, fFormats); 189 189 190 int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL (sizeof(Msg)), &Msg, sizeof(Msg));190 int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL, &Msg, sizeof(Msg)); 191 191 if (RT_SUCCESS(rc)) 192 192 rc = Msg.hdr.result; … … 217 217 VbglHGCMParmPtrSet(&Msg.ptr, pv, cb); 218 218 219 int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL (sizeof(Msg)), &Msg, sizeof(Msg));220 if (RT_SUCCESS(rc)) 221 rc = Msg.hdr.result; 222 return rc; 223 } 224 219 int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL, &Msg, sizeof(Msg)); 220 if (RT_SUCCESS(rc)) 221 rc = Msg.hdr.result; 222 return rc; 223 } 224 -
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibInfoSvc.cpp
r10541 r10543 103 103 VbglHGCMParmPtrSet(&Msg.key, pszKey, strlen(pszKey) + 1); 104 104 VbglHGCMParmPtrSet(&Msg.value, pszValue, strlen(pszValue) + 1); 105 rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL (sizeof(Msg)), &Msg, sizeof(Msg));105 rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL, &Msg, sizeof(Msg)); 106 106 if (RT_SUCCESS(rc)) 107 107 rc = Msg.hdr.result; … … 116 116 Msg.hdr.cParms = 1; 117 117 VbglHGCMParmPtrSet(&Msg.key, pszKey, strlen(pszKey) + 1); 118 rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL (sizeof(Msg)), &Msg, sizeof(Msg));118 rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL, &Msg, sizeof(Msg)); 119 119 if (RT_SUCCESS(rc)) 120 120 rc = Msg.hdr.result; … … 155 155 VbglHGCMParmUInt32Set(&Msg.size, 0); 156 156 157 int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL (sizeof(Msg)), &Msg, sizeof(Msg));157 int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL, &Msg, sizeof(Msg)); 158 158 if (RT_SUCCESS(rc)) 159 159 rc = Msg.hdr.result; -
trunk/src/VBox/Additions/linux/module/vboxmod.c
r10541 r10543 525 525 IOCTL_VMM_EXIT(arg); 526 526 } 527 else if ( ( VBOXGUEST_IOCTL_STRIP_SIZE(VBOXGUEST_IOCTL_HGCM_CALL (0))527 else if ( ( VBOXGUEST_IOCTL_STRIP_SIZE(VBOXGUEST_IOCTL_HGCM_CALL) 528 528 == VBOXGUEST_IOCTL_STRIP_SIZE(cmd)) 529 529 || (cmd == VBOXGUEST_IOCTL_HGCM_CALL))
Note:
See TracChangeset
for help on using the changeset viewer.