VirtualBox

Changeset 57934 in vbox


Ignore:
Timestamp:
Sep 29, 2015 10:24:25 AM (9 years ago)
Author:
vboxsync
Message:

HosDrivers/USBMon: fixed BSOD under driver verifier. Increased timeout in USBMon Uninstaller.

Location:
trunk/src/VBox/HostDrivers/VBoxUSB/win
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxUSB/win/Install/USBUninstall.cpp

    r57358 r57934  
    120120            else if (ControlService(hService, SERVICE_CONTROL_STOP, &Status))
    121121            {
    122                 int iWait = 100;
     122                /*
     123                 * Wait for finish about 1 minute.
     124                 * It should be enough for work with driver verifier
     125                 */
     126                int iWait = 600;
    123127                while (Status.dwCurrentState == SERVICE_STOP_PENDING && iWait-- > 0)
    124128                {
  • trunk/src/VBox/HostDrivers/VBoxUSB/win/mon/VBoxUsbMon.cpp

    r56315 r57934  
    566566            if (Status == STATUS_SUCCESS)
    567567            {
    568                 LOG(("IoGetDeviceObjectPointer for %S returned %p %p", szwHubName, pHubDevObj, pHubFileObj));
     568                LOG(("IoGetDeviceObjectPointer for \\Device\\USBPDO-%d returned %p %p", i, pHubDevObj, pHubFileObj));
    569569
    570570                VBOXUSBOBJDRVOBJSEARCHER Data = {0};
     
    599599            else
    600600            {
    601                 LOG(("IoGetDeviceObjectPointer returned Status (0x%x) for (%S)", Status, szwHubName));
     601                LOG(("IoGetDeviceObjectPointer returned Status (0x%x) for (\\Device\\USBPDO-%d)", Status, i));
    602602            }
    603603        }
    604604        else
    605605        {
    606             WARN(("RtlAnsiStringToUnicodeString failed, Status (0x%x) for Ansu name (%s)", Status, szHubName));
     606            WARN(("RtlAnsiStringToUnicodeString failed, Status (0x%x) for Ansu name (\\Device\\USBPDO-%d)", Status, i));
    607607        }
    608608    }
     
    627627            if (Status == STATUS_SUCCESS)
    628628            {
    629                 /** @todo Replace %S with something else as it does not work for PWSTR. */
    630                 LOG(("IoGetDeviceObjectPointer for %S returned %p %p", szwHubName, pHubDevObj, pHubFileObj));
     629                /* We can't log HubName here couse string logging could lead to BSOD */
     630                LOG(("IoGetDeviceObjectPointer returned %p %p", pHubDevObj, pHubFileObj));
    631631                if (!pfnWalker(pHubFileObj, pHubDevObj, pHubDevObj, pvWalker))
    632632                {
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