VirtualBox

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


Ignore:
Timestamp:
Oct 22, 2013 6:25:04 AM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
90110
Message:

VirtualBox.cpp: VirtualBox::natNetworkRefInc and VirtualBox::natNetworkRefDec don't annoy anyone with assertion anymore, instead functions return -1.

File:
1 edited

Legend:

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

    r48968 r49219  
    31113111        ComPtr<INATNetwork> nat;
    31123112        HRESULT rc = FindNATNetworkByName(aNetworkName, nat.asOutParam());
    3113         AssertComRCReturn(rc, -1);
     3113        if (FAILED(rc)) return -1;
    31143114
    31153115        rc = nat->Start(Bstr("whatever").raw());
     
    31413141        ComPtr<INATNetwork> nat;
    31423142        HRESULT rc = FindNATNetworkByName(aNetworkName, nat.asOutParam());
    3143         AssertComRCReturn(rc, -1);
     3143        if (FAILED(rc)) return -1;
    31443144
    31453145        rc = nat->Stop();
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette