VirtualBox

Changeset 51629 in vbox


Ignore:
Timestamp:
Jun 17, 2014 11:59:31 AM (10 years ago)
Author:
vboxsync
Message:

DevVGA: moved asserts to the right place in vgaPortUpdateDisplayRect.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA.cpp

    r51617 r51629  
    49484948
    49494949    Assert(pInterface);
    4950     Assert(pThis->pDrv);
    4951     Assert(pThis->pDrv->pu8Data);
     4950
     4951    int rc = PDMCritSectEnter(&pThis->CritSect, VERR_SEM_BUSY);
     4952    AssertRC(rc);
    49524953
    49534954    /* Check if there is something to do at all. */
     
    49584959        LogFlow(("vgaPortUpdateDisplayRect: nothing to do fRender is false.\n"));
    49594960#endif /* DEBUG_sunlover */
     4961        PDMCritSectLeave(&pThis->CritSect);
    49604962        return;
    49614963    }
    49624964
    4963     int rc = PDMCritSectEnter(&pThis->CritSect, VERR_SEM_BUSY);
    4964     AssertRC(rc);
     4965    Assert(pThis->pDrv);
     4966    Assert(pThis->pDrv->pu8Data);
    49654967
    49664968    /* Correct negative x and y coordinates. */
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