Changeset 51844 in vbox for trunk/src/VBox/HostDrivers/VBoxNetFlt/win/cfg
- Timestamp:
- Jul 3, 2014 1:03:19 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetFlt/win/cfg/VBoxNetCfg.cpp
r51480 r51844 145 145 { 146 146 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")); 147 149 return S_OK; 150 } 148 151 149 152 HRESULT hr = pNetCfg->Uninitialize(); … … 151 154 { 152 155 NonStandardLogFlow(("Uninitialize failed, hr (0x%x)\n", hr)); 153 return hr;156 /* Try to release the write lock below. */ 154 157 } 155 158 156 159 if (fHasWriteLock) 157 160 { 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; 161 166 } 162 167 … … 1999 2004 static HRESULT vboxNetCfgWinNetFltUninstall(IN INetCfg *pNc, DWORD InfRmFlags) 2000 2005 { 2001 INetCfgComponent * 2006 INetCfgComponent *pNcc = NULL; 2002 2007 HRESULT hr = pNc->FindComponent(VBOXNETCFGWIN_NETFLT_ID, &pNcc); 2003 2008 if (hr == S_OK) … … 2006 2011 2007 2012 hr = VBoxNetCfgWinUninstallComponent(pNc, pNcc); 2013 NonStandardLog("NetFlt component uninstallation ended with hr (0x%x)\n", hr)); 2008 2014 2009 2015 pNcc->Release(); … … 2012 2018 { 2013 2019 NonStandardLog("NetFlt is not installed currently\n"); 2014 hr = S_OK;2015 2020 } 2016 2021 else 2017 2022 { 2018 2023 NonStandardLogFlow(("FindComponent failed, hr (0x%x)\n", hr)); 2019 hr = S_OK;2020 2024 } 2021 2025
Note:
See TracChangeset
for help on using the changeset viewer.