VirtualBox

Changeset 10543 in vbox


Ignore:
Timestamp:
Jul 11, 2008 6:27:31 PM (17 years ago)
Author:
vboxsync
Message:

IOCTL fix for Linux. Hope nothing broke ...

Location:
trunk/src/VBox/Additions
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest.cpp

    r8360 r10543  
    12241224     * This one is tricky and can be done later.
    12251225     */
    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))
    12271227    {
    12281228        CHECKRET_MIN_SIZE("HGCM_CALL", sizeof(VBoxGuestHGCMCallInfo));
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibClipboard.cpp

    r10541 r10543  
    100100    VbglHGCMParmUInt32Set(&Msg.formats, 0);
    101101
    102     int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL(sizeof(Msg)), &Msg, sizeof(Msg));
     102    int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL, &Msg, sizeof(Msg));
    103103    if (RT_SUCCESS(rc))
    104104    {
     
    150150    VbglHGCMParmUInt32Set(&Msg.size, 0);
    151151
    152     int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL(sizeof(Msg)), &Msg, sizeof(Msg));
     152    int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL, &Msg, sizeof(Msg));
    153153    if (RT_SUCCESS(rc))
    154154    {
     
    188188    VbglHGCMParmUInt32Set(&Msg.formats, fFormats);
    189189
    190     int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL(sizeof(Msg)), &Msg, sizeof(Msg));
     190    int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL, &Msg, sizeof(Msg));
    191191    if (RT_SUCCESS(rc))
    192192        rc = Msg.hdr.result;
     
    217217    VbglHGCMParmPtrSet(&Msg.ptr, pv, cb);
    218218
    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  
    103103        VbglHGCMParmPtrSet(&Msg.key, pszKey, strlen(pszKey) + 1);
    104104        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));
    106106        if (RT_SUCCESS(rc))
    107107            rc = Msg.hdr.result;
     
    116116        Msg.hdr.cParms = 1;
    117117        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));
    119119        if (RT_SUCCESS(rc))
    120120            rc = Msg.hdr.result;
     
    155155    VbglHGCMParmUInt32Set(&Msg.size, 0);
    156156
    157     int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL(sizeof(Msg)), &Msg, sizeof(Msg));
     157    int rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_HGCM_CALL, &Msg, sizeof(Msg));
    158158    if (RT_SUCCESS(rc))
    159159        rc = Msg.hdr.result;
  • trunk/src/VBox/Additions/linux/module/vboxmod.c

    r10541 r10543  
    525525            IOCTL_VMM_EXIT(arg);
    526526        }
    527         else if (   (   VBOXGUEST_IOCTL_STRIP_SIZE(VBOXGUEST_IOCTL_HGCM_CALL(0))
     527        else if (   (   VBOXGUEST_IOCTL_STRIP_SIZE(VBOXGUEST_IOCTL_HGCM_CALL)
    528528                == VBOXGUEST_IOCTL_STRIP_SIZE(cmd))
    529529            || (cmd == VBOXGUEST_IOCTL_HGCM_CALL))
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette