VirtualBox

Ignore:
Timestamp:
Jun 8, 2012 10:40:09 AM (13 years ago)
Author:
vboxsync
Message:

Additions/common/VBoxGuest: Hungarian fix.

Location:
trunk/src/VBox/Additions/common/VBoxGuest
Files:
2 edited

Legend:

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

    r41617 r41619  
    723723    pDevExt->MemBalloon.paMemObj = NULL;
    724724    pDevExt->MemBalloon.pOwner = NULL;
    725     for (unsigned i = 0; i < RT_ELEMENTS(pDevExt->cMouseFeatureUsage); ++i)
    726         pDevExt->cMouseFeatureUsage[i] = 0;
     725    for (unsigned i = 0; i < RT_ELEMENTS(pDevExt->acMouseFeatureUsage); ++i)
     726        pDevExt->acMouseFeatureUsage[i] = 0;
    727727    pDevExt->fMouseStatus = 0;
    728728
     
    22312231            if (   (RT_BIT_32(i) & fFeatures)
    22322232                && !(RT_BIT_32(i) & pSession->fMouseStatus))
    2233                 pDevExt->cMouseFeatureUsage[i]++;
     2233                pDevExt->acMouseFeatureUsage[i]++;
    22342234            else if (   !(RT_BIT_32(i) & fFeatures)
    22352235                     && (RT_BIT_32(i) & pSession->fMouseStatus))
    2236                 pDevExt->cMouseFeatureUsage[i]--;
    2237         }
    2238         if (pDevExt->cMouseFeatureUsage[i] > 0)
     2236                pDevExt->acMouseFeatureUsage[i]--;
     2237        }
     2238        if (pDevExt->acMouseFeatureUsage[i] > 0)
    22392239            fNewDevExtStatus |= RT_BIT_32(i);
    22402240    }
     
    22862286                  == VMMDEV_MOUSE_GUEST_CAN_ABSOLUTE,
    22872287                  ("Actual status: 0x%x\n", g_test_statusSetMouseStatus));
    2288         DevExt.cMouseFeatureUsage[ASMBitFirstSetU32(VMMDEV_MOUSE_GUEST_NEEDS_HOST_CURSOR) - 1] = 1;
     2288        DevExt.acMouseFeatureUsage[ASMBitFirstSetU32(VMMDEV_MOUSE_GUEST_NEEDS_HOST_CURSOR) - 1] = 1;
    22892289        rc = VBoxGuestCommonIOCtl(VBOXGUEST_IOCTL_SET_MOUSE_STATUS, &DevExt,
    22902290                                  &Session, &u32Data, sizeof(u32Data), NULL);
     
    23152315                  == VMMDEV_MOUSE_GUEST_NEEDS_HOST_CURSOR,
    23162316                  ("Actual status: 0x%x\n", g_test_statusSetMouseStatus));
    2317         AssertMsg(DevExt.cMouseFeatureUsage[ASMBitFirstSetU32(VMMDEV_MOUSE_GUEST_NEEDS_HOST_CURSOR) - 1] == 1,
    2318                   ("Actual value: %d\n", DevExt.cMouseFeatureUsage[ASMBitFirstSetU32(VMMDEV_MOUSE_GUEST_NEEDS_HOST_CURSOR)]));
     2317        AssertMsg(DevExt.acMouseFeatureUsage[ASMBitFirstSetU32(VMMDEV_MOUSE_GUEST_NEEDS_HOST_CURSOR) - 1] == 1,
     2318                  ("Actual value: %d\n", DevExt.acMouseFeatureUsage[ASMBitFirstSetU32(VMMDEV_MOUSE_GUEST_NEEDS_HOST_CURSOR)]));
    23192319        g_test_SetMouseStatusGRRC = VERR_UNRESOLVED_ERROR;
    23202320        /* This should succeed as the host request should not be made
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuestInternal.h

    r40369 r41619  
    163163    /** @todo can we programmatically determine the size of the array and
    164164     * still get the following alignment right? */
    165     uint32_t volatile           cMouseFeatureUsage[32];
     165    uint32_t volatile           acMouseFeatureUsage[32];
    166166    /** The mouse feature status matching the counts above.  These are updated
    167167     * together inside the session spinlock. */
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