VirtualBox

Changeset 2978 in vbox for trunk


Ignore:
Timestamp:
Jun 1, 2007 2:19:04 PM (18 years ago)
Author:
vboxsync
Message:

Main: USB: Don't try to remove the filter we didn't insert (may happen after a too early VM process crash).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/USBControllerImpl.cpp

    r2845 r2978  
    11691169            else
    11701170            {
    1171                 AssertReturn (flt->id() != NULL, E_FAIL);
    1172                 service->removeFilter (flt->id());
    1173                 flt->id() = NULL;
     1171                /* It's possible that the given filter was not inserted the proxy
     1172                 * when this method gets called (as a result of an early VM
     1173                 * process crash for example. So, don't assert that ID != NULL. */
     1174                if (flt->id() != NULL)
     1175                {
     1176                    service->removeFilter (flt->id());
     1177                    flt->id() = NULL;
     1178                }
    11741179            }
    11751180        }
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