VirtualBox

Changeset 38350 in vbox for trunk/src/VBox/Devices/USB


Ignore:
Timestamp:
Aug 8, 2011 1:57:50 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
73370
Message:

USB: Avoid assertion during the SavePrep routine.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/USB/DevOHCI.cpp

    r37668 r38350  
    49274927    POHCI pOhci = PDMINS_2_DATA(pDevIns, POHCI);
    49284928    POHCIROOTHUB pRh = &pOhci->RootHub;
    4929     unsigned i;
    49304929    LogFlow(("ohciR3SavePrep: \n"));
    49314930
     
    49334932     * Detach all proxied devices.
    49344933     */
     4934    PDMCritSectEnter(pOhci->pDevInsR3->pCritSectRoR3, VERR_IGNORED);
    49354935    /** @todo we a) can't tell which are proxied, and b) this won't work well when continuing after saving! */
    4936     for (i = 0; i < RT_ELEMENTS(pRh->aPorts); i++)
     4936    for (unsigned i = 0; i < RT_ELEMENTS(pRh->aPorts); i++)
    49374937    {
    49384938        PVUSBIDEVICE pDev = pRh->aPorts[i].pDev;
     
    49484948        }
    49494949    }
     4950    PDMCritSectLeave(pOhci->pDevInsR3->pCritSectRoR3);
    49504951
    49514952    /*
Note: See TracChangeset for help on using the changeset viewer.

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