diff options
author | Felix Geyer <debfx-pkg@fobos.de> | 2011-07-29 17:55:18 +0200 |
---|---|---|
committer | Felix Geyer <debfx-pkg@fobos.de> | 2011-07-29 17:55:18 +0200 |
commit | cba113ca2826bc4814be2f69a7704c865a37d4ea (patch) | |
tree | 511123b10dd1e58e56958520534f5c50e6f570fc /src/VBox/Main/src-client/VMMDevInterface.cpp | |
parent | 6a16f6900dd884e07125b51c9625f6be0a1f9b70 (diff) | |
download | virtualbox-cba113ca2826bc4814be2f69a7704c865a37d4ea.tar.gz |
Imported Upstream version 4.1.0-dfsgupstream/4.1.0-dfsg
Diffstat (limited to 'src/VBox/Main/src-client/VMMDevInterface.cpp')
-rw-r--r-- | src/VBox/Main/src-client/VMMDevInterface.cpp | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/VBox/Main/src-client/VMMDevInterface.cpp b/src/VBox/Main/src-client/VMMDevInterface.cpp index a4c8a8518..b512da2e2 100644 --- a/src/VBox/Main/src-client/VMMDevInterface.cpp +++ b/src/VBox/Main/src-client/VMMDevInterface.cpp @@ -1,4 +1,4 @@ -/* $Id: VMMDevInterface.cpp $ */ +/* $Id: VMMDevInterface.cpp 37175 2011-05-21 20:51:24Z vboxsync $ */ /** @file * VirtualBox Driver Interface to VMM device. */ @@ -232,8 +232,8 @@ DECLCALLBACK(void) vmmdevUpdateGuestInfo(PPDMIVMMDEVCONNECTOR pInterface, const */ guest->setAdditionsInfo(Bstr(), guestInfo->osType); /* Clear interface version + OS type. */ guest->setAdditionsInfo2(Bstr(), Bstr(), Bstr()); /* Clear Guest Additions version. */ - guest->setAdditionsStatus(VBoxGuestStatusFacility_All, - VBoxGuestStatusCurrent_Inactive, + guest->setAdditionsStatus(VBoxGuestFacilityType_All, + VBoxGuestFacilityStatus_Inactive, 0); /* Flags; not used. */ pConsole->onAdditionsStateChange(); } @@ -293,18 +293,19 @@ DECLCALLBACK(void) vmmdevUpdateGuestInfo2(PPDMIVMMDEVCONNECTOR pInterface, const DECLCALLBACK(void) vmmdevUpdateGuestCapabilities(PPDMIVMMDEVCONNECTOR pInterface, uint32_t newCapabilities) { PDRVMAINVMMDEV pDrv = PDMIVMMDEVCONNECTOR_2_MAINVMMDEV(pInterface); + AssertPtr(pDrv); Console *pConsole = pDrv->pVMMDev->getParent(); /* store that information in IGuest */ - Guest* guest = pConsole->getGuest(); - Assert(guest); - if (!guest) + Guest* pGuest = pConsole->getGuest(); + AssertPtr(pGuest); + if (!pGuest) return; /* * Report our current capabilities (and assume none is active yet). */ - guest->setSupportedFeatures(newCapabilities, 0 /* Active capabilities, not used here. */); + pGuest->setSupportedFeatures(newCapabilities); /* * Tell the console interface about the event @@ -463,9 +464,6 @@ DECLCALLBACK(int) vmmdevSetVisibleRegion(PPDMIVMMDEVCONNECTOR pInterface, uint32 PDRVMAINVMMDEV pDrv = PDMIVMMDEVCONNECTOR_2_MAINVMMDEV(pInterface); Console *pConsole = pDrv->pVMMDev->getParent(); - if (!cRect) - return VERR_INVALID_PARAMETER; - /* Forward to Display, which calls corresponding framebuffers. */ pConsole->getDisplay()->handleSetVisibleRegion(cRect, pRect); |