vbox的更動 59046 路徑 trunk/src/VBox/HostDrivers
- 時間撮記:
- 2015-12-8 上午07:52:35 (9 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/HostDrivers/VBoxNetFlt/win/cfg/VBoxNetCfg.cpp
r59014 r59046 2304 2304 NonStandardLogFlow(("Unable to move interface, hr (0x%x)\n", hr)); 2305 2305 bFoundIface = true; 2306 /* 2307 * Enable binding paths for host-only adapters bound to bridged filter 2308 * (see @bugref{8140}). 2309 */ 2310 HRESULT hr2; 2311 LPWSTR pwszHwId = NULL; 2312 if ((hr2 = pNcc->GetId(&pwszHwId)) != S_OK) 2313 NonStandardLogFlow(("Failed to get HW ID, hr (0x%x)\n", hr2)); 2314 else if (_wcsnicmp(pwszHwId, VBOXNETCFGWIN_NETLWF_ID, 2315 sizeof(VBOXNETCFGWIN_NETLWF_ID)/2)) 2316 NonStandardLogFlow(("Ignoring component %ls\n", pwszHwId)); 2317 else if ((hr2 = pNetCfgBindPath->IsEnabled()) != S_FALSE) 2318 NonStandardLogFlow(("Already enabled binding path, hr (0x%x)\n", hr2)); 2319 else if ((hr2 = pNetCfgBindPath->Enable(TRUE)) != S_OK) 2320 NonStandardLogFlow(("Failed to enable binding path, hr (0x%x)\n", hr2)); 2321 else 2322 NonStandardLogFlow(("Enabled binding path\n")); 2323 if (pwszHwId) 2324 CoTaskMemFree(pwszHwId); 2306 2325 } 2307 2326 } … … 2770 2789 HKEY hkey = (HKEY)INVALID_HANDLE_VALUE; 2771 2790 bstr_t bstrError; 2772 INetCfg *pNetCfg = NULL;2773 LPWSTR lpszApp = NULL;2774 2791 2775 2792 do … … 3153 3170 { 3154 3171 HRESULT hr; 3172 INetCfg *pNetCfg = NULL; 3173 LPWSTR lpszApp = NULL; 3155 3174 #ifndef VBOXNETCFG_DELAYEDRENAME 3156 3175 WCHAR ConnectionName[128]; … … 3178 3197 } 3179 3198 3180 /* Check if INetCfg has been queried already, query if it hasn't been. */ 3181 if (pNetCfg == NULL) 3182 hr = VBoxNetCfgWinQueryINetCfg(&pNetCfg, TRUE, L"VirtualBox Host-Only Creation", 3183 30 * 1000, /* on Vista we often get 6to4svc.dll holding the lock, wait for 30 sec. */ 3184 /* TODO: special handling for 6to4svc.dll ???, i.e. several retrieves */ 3185 &lpszApp); 3186 else 3187 hr = S_OK; 3199 hr = VBoxNetCfgWinQueryINetCfg(&pNetCfg, TRUE, L"VirtualBox Host-Only Creation", 3200 30 * 1000, /* on Vista we often get 6to4svc.dll holding the lock, wait for 30 sec. */ 3201 /* TODO: special handling for 6to4svc.dll ???, i.e. several retrieves */ 3202 &lpszApp); 3188 3203 if (hr == S_OK) 3189 3204 {
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器