VirtualBox

Changeset 56824 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Jul 6, 2015 4:57:17 PM (9 years ago)
Author:
vboxsync
Message:

Revert r101473 because the build issues under linux.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/HostUSBDeviceImpl.cpp

    r56822 r56824  
    55
    66/*
    7  * Copyright (C) 2005-2015 Oracle Corporation
     7 * Copyright (C) 2005-2014 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    3030#include <VBox/err.h>
    3131#include <iprt/cpp/utils.h>
    32 #include "USBDevAliases.h"
    3332
    3433// constructor / destructor
     
    168167
    169168    aManufacturer = mUsb->pszManufacturer;
    170     if (mUsb->pszManufacturer == NULL || mUsb->pszManufacturer[0] == 0)
    171     {
    172         USBNameAlias* alias = USBDevTableAdapter::findAlias(mUsb->idVendor, mUsb->idProduct);
    173         if (alias != NULL)
    174         {
    175             aManufacturer = alias->vendor;
    176         }
    177     }
     169
    178170    return S_OK;
    179171}
     
    185177
    186178    aProduct = mUsb->pszProduct;
    187     if (mUsb->pszProduct == NULL || mUsb->pszProduct[0]== 0)
    188     {
    189         USBNameAlias* alias = USBDevTableAdapter::findAlias(mUsb->idVendor, mUsb->idProduct);
    190         if (alias != NULL)
    191         {
    192             aProduct = alias->product;
    193         }
    194     }
     179
    195180    return S_OK;
    196181}
     
    343328        name = Utf8StrFmt("%s", mUsb->pszProduct);
    344329    else
    345     {
    346         USBNameAlias* alias = USBDevTableAdapter::findAlias(mUsb->idVendor, mUsb->idProduct);
    347         if (alias == NULL)
    348         {
    349             name = "<unknown>";
    350             LogRel(("USB: Unknown USB device detected ( idVendor: 0x%04x, idProduct: 0x%04x ). \
    351                     Please, report the idVendor and idProduct to vbox.org.\n", mUsb->idVendor, mUsb->idProduct));
    352         }
    353         else
    354         {
    355             name = Utf8StrFmt("%s %s", alias->vendor, alias->product);
    356         }
    357     }
     330        name = "<unknown>";
     331
    358332    return name;
    359333}
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