VirtualBox

Changeset 8544 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
May 2, 2008 8:49:42 PM (17 years ago)
Author:
vboxsync
Message:

Fixed crash in Console::usbDetachCallback log statement, probably caused by some missing object reference (doesn't quite make sense, but the crash is gone now).

File:
1 edited

Legend:

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

    r8471 r8544  
    50215021
    50225022    AssertReturn (that && aUuid, VERR_INVALID_PARAMETER);
     5023    ComObjPtr <OUSBDevice> device = **aIt;
    50235024
    50245025    /*
     
    50455046        /* Remove the device from the collection */
    50465047        that->mUSBDevices.erase (*aIt);
    5047         LogFlowFunc (("Detached device {%Vuuid}\n", (**aIt)->id().raw()));
     5048        LogFlowFunc (("Detached device {%Vuuid}\n", device->id().raw()));
    50485049
    50495050        /* notify callbacks */
    5050         that->onUSBDeviceStateChange (**aIt, false /* aAttached */, NULL);
     5051        that->onUSBDeviceStateChange (device, false /* aAttached */, NULL);
    50515052    }
    50525053
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