VirtualBox

Changeset 29625 in vbox for trunk/src/VBox/Additions/common


Ignore:
Timestamp:
May 18, 2010 12:40:24 PM (15 years ago)
Author:
vboxsync
Message:

Additions: only check the return code of VbglGRPerform()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest.cpp

    r29617 r29625  
    246246        pReq->u32NotMask = ~fMask;
    247247        rc = VbglGRPerform(&pReq->header);
    248         if (    RT_FAILURE(rc)
    249             ||  RT_FAILURE(pReq->header.rc))
    250             LogRel(("vboxGuestSetFilterMask: failed with rc=%Rrc and VMMDev rc=%Rrc\n",
    251                     rc, pReq->header.rc));
     248        if (RT_FAILURE(rc))
     249            LogRel(("vboxGuestSetFilterMask: failed with rc=%Rrc\n", rc));
    252250        VbglGRFree(&pReq->header);
    253251    }
     
    11431141    rc = VbglGRPerform(&pReq->header);
    11441142    if (RT_FAILURE(rc))
    1145         Log(("VBoxGuestSetGuestCapabilities:VbglGRPerform failed, rc=%Rrc!\n", rc));
    1146     else if (RT_FAILURE(pReq->header.rc))
    1147     {
    1148         Log(("VBoxGuestSetGuestCapabilities: The request failed; VMMDev rc=%Rrc!\n", pReq->header.rc));
    1149         rc = pReq->header.rc;
    1150     }
     1143        Log(("VBoxGuestSetGuestCapabilities: VbglGRPerform failed, rc=%Rrc!\n", rc));
    11511144
    11521145    VbglGRFree(&pReq->header);
     
    14921485    if (RT_FAILURE(rc))
    14931486        Log(("VBoxGuestCommonIOCtl: CTL_FILTER_MASK: VbglGRPerform failed, rc=%Rrc!\n", rc));
    1494     else if (RT_FAILURE(pReq->header.rc))
    1495     {
    1496         Log(("VBoxGuestCommonIOCtl: CTL_FILTER_MASK: The request failed; VMMDev rc=%Rrc!\n", pReq->header.rc));
    1497         rc = pReq->header.rc;
    1498     }
    14991487
    15001488    VbglGRFree(&pReq->header);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette