VirtualBox

Ignore:
Timestamp:
Feb 22, 2019 5:40:00 PM (6 years ago)
Author:
vboxsync
Message:

Main: Eradicate the use of BSTR in regular API code, there were leaks in almost every occurrence. Also do some Bstr->Utf8Str shuffling to reduce the number of conversions.

File:
1 edited

Legend:

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

    r76592 r77436  
    257257                        enmType = HostNetworkInterfaceType_HostOnly;
    258258
    259                     if (SUCCEEDED(IfObj->init(Bstr(pszName), enmType, &Info)))
     259                    if (SUCCEEDED(IfObj->init(pszName, enmType, &Info)))
    260260                    {
    261261                        if (strcmp(pszName, szDefaultIface) == 0)
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