VirtualBox

Changeset 14457 in vbox


Ignore:
Timestamp:
Nov 21, 2008 1:43:41 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
39728
Message:

DrvIntNet.cpp: Use AssertLogMsgRCReturn.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DrvIntNet.cpp

    r14348 r14457  
    10141014
    10151015#elif defined(RT_OS_WINDOWS) && defined(VBOX_WITH_NETFLT)
    1016 
    1017     if(OpenReq.enmTrunkType == kIntNetTrunkType_NetFlt)
     1016    if (OpenReq.enmTrunkType == kIntNetTrunkType_NetFlt)
    10181017    {
    10191018# ifndef VBOX_NETFLT_ONDEMAND_BIND
    1020         /* we have a ndis filter driver started on system boot before the VBoxDrv,
    1021          * tell the filter driver to init VBoxNetFlt functionality */
     1019        /*
     1020         * We have a ndis filter driver started on system boot before the VBoxDrv,
     1021         * tell the filter driver to init VBoxNetFlt functionality.
     1022         */
    10221023        rc = drvIntNetWinConstruct(pDrvIns, pCfgHandle);
    1023         Assert(RT_SUCCESS(rc));
    1024         if (RT_FAILURE(rc))
    1025         {
    1026             LogRel(("drvIntNetConstruct: drvIntNetWinConstruct failed, rc (0x%x)", rc));
    1027             return rc;
    1028         }
     1024        AssertLogRelMsgRCReturn(rc, ("drvIntNetWinConstruct failed, rc=%Rrc", rc), rc);
    10291025# endif
    10301026
     1027        /*
     1028         * <Describe what this does here or/and in the function docs of drvIntNetWinIfGuidToBindName>.
     1029         */
    10311030        char szBindName[INTNET_MAX_TRUNK_NAME];
    1032         int cBindName = INTNET_MAX_TRUNK_NAME;
    1033 
    1034         rc = drvIntNetWinIfGuidToBindName(OpenReq.szTrunk, szBindName, cBindName);
    1035         Assert(RT_SUCCESS(rc));
    1036         if (RT_FAILURE(rc))
    1037         {
    1038             LogRel(("drvIntNetConstruct: drvIntNetWinIfGuidToBindName failed, rc (0x%x)", rc));
    1039             return rc;
    1040         }
    1041 
     1031        rc = drvIntNetWinIfGuidToBindName(OpenReq.szTrunk, szBindName, INTNET_MAX_TRUNK_NAME);
     1032        AssertLogRelMsgRCReturn(rc, ("drvIntNetWinIfGuidToBindName failed, rc=%Rrc", rc), rc);
    10421033        strcpy(OpenReq.szTrunk, szBindName);
    10431034    }
    1044 #endif
     1035#endif /* WINDOWS && NETFLT */
    10451036
    10461037    /*
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