VirtualBox

Ignore:
Timestamp:
Dec 21, 2017 2:28:47 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
119880
Message:

Removed unused code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxUSB/win/mon/VBoxUsbFlt.cpp

    r69500 r70283  
    542542            }
    543543
    544 #if 0
    545             if (bPopulateNonFilterProps)
    546             {
    547                 WCHAR RegKeyBuf[512];
    548                 ULONG cbRegKeyBuf = sizeof (RegKeyBuf);
    549                 Status = IoGetDeviceProperty(pDo,
    550                                               DevicePropertyDriverKeyName,
    551                                               cbRegKeyBuf,
    552                                               RegKeyBuf,
    553                                               &cbRegKeyBuf);
    554                 if (!NT_SUCCESS(Status))
    555                 {
    556                     AssertMsgFailed((__FUNCTION__": IoGetDeviceProperty failed Status (0x%x)", Status));
    557                     break;
    558                 }
    559 
    560                 ANSI_STRING Ansi;
    561                 UNICODE_STRING Unicode;
    562                 Ansi.Buffer = pDevice->szDrvKeyName;
    563                 Ansi.Length = 0;
    564                 Ansi.MaximumLength = sizeof(pDevice->szDrvKeyName);
    565                 RtlInitUnicodeString(&Unicode, RegKeyBuf);
    566 
    567                 Status = RtlUnicodeStringToAnsiString(&Ansi, &Unicode, FALSE /* do not allocate */);
    568                 if (!NT_SUCCESS(Status))
    569                 {
    570                     AssertMsgFailed((__FUNCTION__": RtlUnicodeStringToAnsiString failed Status (0x%x)", Status));
    571                     break;
    572                 }
    573 
    574                 pDevice->fHighSpend = FALSE;
    575                 Status = VBoxUsbToolGetDeviceSpeed(pDo, &pDevice->fHighSpend);
    576                 if (!NT_SUCCESS(Status))
    577                 {
    578                     AssertMsgFailed((__FUNCTION__": VBoxUsbToolGetDeviceSpeed failed Status (0x%x)", Status));
    579                     break;
    580                 }
    581             }
    582 #endif
    583544            LOG((": strings: '%s':'%s':'%s' (lang ID %x)",
    584545                        pDevice->szMfgName, pDevice->szProduct, pDevice->szSerial, langId));
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