Changeset 11844 in vbox
- Timestamp:
- Aug 29, 2008 6:47:01 PM (16 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/VMMDevInterface.cpp
r11820 r11844 520 520 } 521 521 522 if (!pDrv->pVMMDev->hgcmIsActive ()) 523 { 524 return VERR_INVALID_STATE; 525 } 526 522 527 return HGCMGuestConnect (pDrv->pHGCMPort, pCmd, pServiceLocation->u.host.achName, pu32ClientID); 523 528 } … … 528 533 529 534 PDRVMAINVMMDEV pDrv = PDMIHGCMCONNECTOR_2_MAINVMMDEV(pInterface); 535 536 if (!pDrv->pVMMDev->hgcmIsActive ()) 537 { 538 return VERR_INVALID_STATE; 539 } 530 540 531 541 return HGCMGuestDisconnect (pDrv->pHGCMPort, pCmd, u32ClientID); … … 538 548 539 549 PDRVMAINVMMDEV pDrv = PDMIHGCMCONNECTOR_2_MAINVMMDEV(pInterface); 550 551 if (!pDrv->pVMMDev->hgcmIsActive ()) 552 { 553 return VERR_INVALID_STATE; 554 } 540 555 541 556 return HGCMGuestCall (pDrv->pHGCMPort, pCmd, u32ClientID, u32Function, cParms, paParms); … … 576 591 int VMMDev::hgcmLoadService (const char *pszServiceLibrary, const char *pszServiceName) 577 592 { 578 if ( ASMAtomicReadBool(&m_fHGCMActive) == false)593 if (!hgcmIsActive ()) 579 594 { 580 595 return VERR_INVALID_STATE; … … 586 601 uint32_t cParms, PVBOXHGCMSVCPARM paParms) 587 602 { 588 if ( ASMAtomicReadBool(&m_fHGCMActive) == false)603 if (!hgcmIsActive ()) 589 604 { 590 605 return VERR_INVALID_STATE; -
trunk/src/VBox/Main/include/VMMDev.h
r11820 r11844 57 57 void hgcmShutdown (void); 58 58 59 bool hgcmIsActive (void) { return ASMAtomicReadBool(&m_fHGCMActive); } 60 59 61 private: 60 62 static DECLCALLBACK(void *) drvQueryInterface(PPDMIBASE pInterface, PDMINTERFACE enmInterface);
Note:
See TracChangeset
for help on using the changeset viewer.