VirtualBox

Changeset 48423 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Sep 11, 2013 10:44:36 AM (11 years ago)
Author:
vboxsync
Message:

Main: EmulatedUSB fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/EmulatedUSBImpl.cpp

    r48408 r48423  
    254254    while (it != m.webcams.end())
    255255    {
    256         WebcamsMap::iterator itNext = ++it;
    257256        EUSBWEBCAM *p = it->second;
    258         m.webcams.erase(it);
     257        m.webcams.erase(it++);
    259258        p->Release();
    260         it = itNext;
    261259    }
    262260    alock.release();
     
    403401            p->Release();
    404402        }
     403        else
     404        {
     405            hrc = E_INVALIDARG;
     406        }
    405407    }
    406408    else
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