VirtualBox

Ignore:
Timestamp:
Jul 3, 2014 1:03:19 PM (11 years ago)
Author:
vboxsync
Message:

NetFlt: Uninstallation logging.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/win/cfg/VBoxNetCfg.cpp

    r51480 r51844  
    145145{
    146146    if (!pNetCfg) /* If network config has been released already, just bail out. */
     147    {
     148        NonStandardLogFlow(("Warning: No network config given but write lock is set to TRUE\n"));
    147149        return S_OK;
     150    }
    148151
    149152    HRESULT hr = pNetCfg->Uninitialize();
     
    151154    {
    152155        NonStandardLogFlow(("Uninitialize failed, hr (0x%x)\n", hr));
    153         return hr;
     156        /* Try to release the write lock below. */
    154157    }
    155158
    156159    if (fHasWriteLock)
    157160    {
    158         hr = vboxNetCfgWinINetCfgUnlock(pNetCfg);
    159         if (FAILED(hr))
    160             NonStandardLogFlow(("vboxNetCfgWinINetCfgUnlock failed, hr (0x%x)\n", hr));
     161        HRESULT hr2 = vboxNetCfgWinINetCfgUnlock(pNetCfg);
     162        if (FAILED(hr2))
     163            NonStandardLogFlow(("vboxNetCfgWinINetCfgUnlock failed, hr (0x%x)\n", hr2));
     164        if (SUCCEEDED(hr))
     165            hr = hr2;
    161166    }
    162167
     
    19992004static HRESULT vboxNetCfgWinNetFltUninstall(IN INetCfg *pNc, DWORD InfRmFlags)
    20002005{
    2001     INetCfgComponent * pNcc = NULL;
     2006    INetCfgComponent *pNcc = NULL;
    20022007    HRESULT hr = pNc->FindComponent(VBOXNETCFGWIN_NETFLT_ID, &pNcc);
    20032008    if (hr == S_OK)
     
    20062011
    20072012        hr = VBoxNetCfgWinUninstallComponent(pNc, pNcc);
     2013        NonStandardLog("NetFlt component uninstallation ended with hr (0x%x)\n", hr));
    20082014
    20092015        pNcc->Release();
     
    20122018    {
    20132019        NonStandardLog("NetFlt is not installed currently\n");
    2014         hr = S_OK;
    20152020    }
    20162021    else
    20172022    {
    20182023        NonStandardLogFlow(("FindComponent failed, hr (0x%x)\n", hr));
    2019         hr = S_OK;
    20202024    }
    20212025
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