VirtualBox

Changeset 29625 in vbox for trunk/src/VBox


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

Additions: only check the return code of VbglGRPerform()

Location:
trunk/src/VBox/Additions
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Miniport/Helper.cpp

    r28800 r29625  
    133133        req2->bpp    = bpp;
    134134        rc = VbglGRPerform(&req2->header);
    135         if (RT_SUCCESS(rc) && RT_SUCCESS(req2->header.rc))
     135        if (RT_SUCCESS(rc))
    136136        {
    137137            bRC = req2->fSupported;
     
    153153
    154154            rc = VbglGRPerform(&req->header);
    155             if (RT_SUCCESS(rc) && RT_SUCCESS(req->header.rc))
     155            if (RT_SUCCESS(rc))
    156156            {
    157157                bRC = req->fSupported;
     
    379379        rc = VbglGRPerform (&req->header);
    380380
    381         if (RT_SUCCESS(rc) && RT_SUCCESS(req->header.rc))
     381        if (RT_SUCCESS(rc))
    382382        {
    383383            bRC = TRUE;
  • trunk/src/VBox/Additions/WINNT/Graphics/Miniport/VBoxVideo.cpp

    r28800 r29625  
    33723372            {
    33733373                dprintf(("VBoxVideo::vboxVbvaEnable: rc = %Rrc!\n", rc));
    3374 
    3375                 if (RT_SUCCESS(rc))
    3376                 {
    3377                     rc = req->header.rc;
    3378                 }
    33793374            }
    33803375
  • 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