Changeset 45010 in vbox for trunk/src/VBox/HostServices/GuestControl/service.cpp
- Timestamp:
- Mar 12, 2013 5:47:56 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/GuestControl/service.cpp
r44935 r45010 459 459 { 460 460 ClientState(void) 461 : mSvcHelpers(NULL), 462 mFlags(0), mContextFilter(0), 461 : mSvcHelpers(NULL), 462 mFlags(0), mContextFilter(0), 463 463 mpHostCmd(NULL), mHostCmdRc(VINF_SUCCESS), mHostCmdTries(0), 464 464 mIsPending(false) {} 465 465 466 466 ClientState(PVBOXHGCMSVCHELPERS pSvcHelpers) 467 : mSvcHelpers(pSvcHelpers), 468 mFlags(0), mContextFilter(0), 467 : mSvcHelpers(pSvcHelpers), 468 mFlags(0), mContextFilter(0), 469 469 mpHostCmd(NULL), mHostCmdRc(VINF_SUCCESS), mHostCmdTries(0), 470 470 mIsPending(false) {} … … 474 474 AssertPtrReturn(pHostCmd, false); 475 475 476 #ifdef DEBUG_andy 477 LogFlowFunc(("mFlags=%x, mContextID=%RU32, mContextFilter=%x, filterRes=%x\n", 478 mFlags, pHostCmd->mContextID, mContextFilter, pHostCmd->mContextID & mContextFilter)); 479 #endif 476 480 /* 477 481 * If a sesseion filter is set, only obey those sessions we're interested in. … … 479 483 if (mFlags & CLIENTSTATE_FLAG_CONTEXTFILTER) 480 484 { 481 if ( VBOX_GUESTCTRL_CONTEXTID_GET_SESSION(pHostCmd->mContextID) == mContextFilter)485 if ((pHostCmd->mContextID & mContextFilter) == mContextFilter) 482 486 return true; 483 487 } … … 1113 1117 return VERR_INVALID_PARAMETER; 1114 1118 1115 uint32_t uMaskAdd ;1119 uint32_t uMaskAdd, uMaskRemove; 1116 1120 int rc = paParms[0].getUInt32(&uMaskAdd); 1117 1121 if (RT_SUCCESS(rc)) 1122 rc = paParms[1].getUInt32(&uMaskRemove); 1123 if (RT_SUCCESS(rc)) 1118 1124 { 1119 1125 /* paParms[1] unused yet. */ … … 1122 1128 1123 1129 clientState.mFlags |= CLIENTSTATE_FLAG_CONTEXTFILTER; 1124 clientState.mContextFilter = uMaskAdd; 1125 1126 LogFlowFunc(("Client ID=%RU32 now has filter=%x enabled (flags=%x)\n", 1127 u32ClientID, clientState.mContextFilter, clientState.mFlags)); 1130 if (uMaskAdd) 1131 clientState.mContextFilter |= uMaskAdd; 1132 if (uMaskRemove) 1133 clientState.mContextFilter &= ~uMaskRemove; 1134 1135 LogFlowFunc(("Client ID=%RU32 now has filter=%x enabled (flags=%x, maskAdd=%x, maskRemove=%x)\n", 1136 u32ClientID, clientState.mContextFilter, clientState.mFlags, 1137 uMaskAdd, uMaskRemove)); 1128 1138 } 1129 1139
Note:
See TracChangeset
for help on using the changeset viewer.