Changeset 57536 in vbox for trunk/src/VBox/Main/src-server/win/NetIf-win.cpp
- Timestamp:
- Aug 25, 2015 10:57:43 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/win/NetIf-win.cpp
r57485 r57536 1474 1474 &lpszApp); 1475 1475 Assert(hr == S_OK); 1476 if (hr != S_OK) 1477 { 1478 if (pNc) 1479 pNc->Release(); 1480 pNc = NULL; 1481 LogRel(("NetIfList: failed to acquire INetCfg interface (0x%x), trying CoCreateInstance...\n", hr)); 1482 hr = CoCreateInstance(CLSID_CNetCfg, NULL, CLSCTX_INPROC_SERVER, IID_INetCfg, (PVOID*)&pNc); 1483 if (SUCCEEDED(hr)) 1484 { 1485 hr = pNc->Initialize(NULL); 1486 if (FAILED(hr)) 1487 { 1488 LogRel(("NetIfList: INetCfg::Initialize failed with 0x%x\n", hr)); 1489 if (pNc) 1490 pNc->Release(); 1491 pNc = NULL; 1492 } 1493 } 1494 else 1495 LogRel(("NetIfList: CoCreateInstance failed with 0x%x\n", hr)); 1496 } 1497 1476 1498 if (hr == S_OK) 1477 1499 { … … 1613 1635 VBoxNetCfgWinReleaseINetCfg(pNc, FALSE); 1614 1636 } 1615 else1616 {1617 if (pNc)1618 pNc->Release();1619 pNc = NULL;1620 LogRel(("NetIfList: failed to acquire INetCfg interface (0x%x), trying CoCreateInstance...\n", hr));1621 hr = CoCreateInstance(CLSID_CNetCfg, NULL, CLSCTX_INPROC_SERVER, IID_INetCfg, (PVOID*)&pNc);1622 LogRel(("NetIfList: CoCreateInstance failed with 0x%x\n", hr));1623 if (pNc)1624 pNc->Release();1625 }1626 1637 1627 1638 return VINF_SUCCESS;
Note:
See TracChangeset
for help on using the changeset viewer.