- Timestamp:
- Sep 7, 2010 11:33:42 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest.cpp
r32274 r32275 40 40 #if defined(RT_OS_LINUX) || defined(RT_OS_FREEBSD) 41 41 # include "revision-generated.h" 42 #endif43 #if defined(RT_OS_WINDOWS)44 RT_C_DECLS_BEGIN45 # include <ntddk.h>46 RT_C_DECLS_END47 42 #endif 48 43 … … 1570 1565 1571 1566 /** 1572 * Helper to (re-)init the HGCM communication. 1573 * 1574 * @param pDevExt Device extension 1567 * Helper to reinit the VBoxVMM communication after hibernation. 1568 * 1569 * @returns VBox status code. 1570 * @param pDevExt The device extension. 1571 * @param enmOSType The OS type. 1572 * 1573 * @todo r=bird: This is a misnomer, it's related to VMMDev communication in 1574 * general, not only HGCM. Further, it's reinit only. Init can only 1575 * be done VBoxGuestInitDevExt. A better name would be 1576 * VBoxGuestReinitDevExtAfterHibernation. 1575 1577 */ 1576 1578 int VBoxGuestHGCMInitCommunication(PVBOXGUESTDEVEXT pDevExt, VBOXOSTYPE enmOSType) … … 1581 1583 rc = VBoxGuestReportDriverStatus(true /* Driver is active */); 1582 1584 if (RT_FAILURE(rc)) 1583 Log(("VBoxGuest::VBoxGuestInitHGCMCommunication: could not report guest driver status, vrc = %d\n", rc));1585 Log(("VBoxGuest::VBoxGuestInitHGCMCommunication: could not report guest driver status, rc=%Rrc\n", rc)); 1584 1586 } 1585 1587 else 1586 Log(("VBoxGuest::VBoxGuestInitHGCMCommunication: could not report guest information to host, vrc = %d\n", rc));1587 Log(("VBoxGuest::VBoxGuestInitHGCMCommunication: returned with vrc = %d\n", rc));1588 Log(("VBoxGuest::VBoxGuestInitHGCMCommunication: could not report guest information to host, rc=%Rrc\n", rc)); 1589 Log(("VBoxGuest::VBoxGuestInitHGCMCommunication: returned with rc=%Rrc\n", rc)); 1588 1590 return rc; 1589 1591 } … … 1966 1968 if (pDevExt->MemBalloon.pOwner == pSession) 1967 1969 { 1968 rc = vboxGuestSetBalloonSizeFromUser(pDevExt, pSession, 1969 pInfo->u64ChunkAddr, 1970 pInfo->fInflate > 0 ? true : false); 1970 rc = vboxGuestSetBalloonSizeFromUser(pDevExt, pSession, pInfo->u64ChunkAddr, !!pInfo->fInflate); 1971 1971 if (pcbDataReturned) 1972 1972 *pcbDataReturned = 0;
Note:
See TracChangeset
for help on using the changeset viewer.