Changeset 41619 in vbox for trunk/src/VBox/Additions/common/VBoxGuest
- Timestamp:
- Jun 8, 2012 10:40:09 AM (13 years ago)
- Location:
- trunk/src/VBox/Additions/common/VBoxGuest
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest.cpp
r41617 r41619 723 723 pDevExt->MemBalloon.paMemObj = NULL; 724 724 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; 727 727 pDevExt->fMouseStatus = 0; 728 728 … … 2231 2231 if ( (RT_BIT_32(i) & fFeatures) 2232 2232 && !(RT_BIT_32(i) & pSession->fMouseStatus)) 2233 pDevExt-> cMouseFeatureUsage[i]++;2233 pDevExt->acMouseFeatureUsage[i]++; 2234 2234 else if ( !(RT_BIT_32(i) & fFeatures) 2235 2235 && (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) 2239 2239 fNewDevExtStatus |= RT_BIT_32(i); 2240 2240 } … … 2286 2286 == VMMDEV_MOUSE_GUEST_CAN_ABSOLUTE, 2287 2287 ("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; 2289 2289 rc = VBoxGuestCommonIOCtl(VBOXGUEST_IOCTL_SET_MOUSE_STATUS, &DevExt, 2290 2290 &Session, &u32Data, sizeof(u32Data), NULL); … … 2315 2315 == VMMDEV_MOUSE_GUEST_NEEDS_HOST_CURSOR, 2316 2316 ("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)])); 2319 2319 g_test_SetMouseStatusGRRC = VERR_UNRESOLVED_ERROR; 2320 2320 /* This should succeed as the host request should not be made -
trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuestInternal.h
r40369 r41619 163 163 /** @todo can we programmatically determine the size of the array and 164 164 * still get the following alignment right? */ 165 uint32_t volatile cMouseFeatureUsage[32];165 uint32_t volatile acMouseFeatureUsage[32]; 166 166 /** The mouse feature status matching the counts above. These are updated 167 167 * together inside the session spinlock. */
Note:
See TracChangeset
for help on using the changeset viewer.