[NETSHELL] Improvements to the network setup (2a/x)

Step 2a: Really check the binding between network components.

Next Step: Bind the Tcpip transport to all enumerated network adapters.
This commit is contained in:
Eric Kohl 2019-06-20 22:07:42 +02:00
parent 73ca084e96
commit 214692ff5e

View file

@ -101,7 +101,7 @@ CNetConnectionPropertyUi::EnumComponents(HWND hDlgCtrl, INetCfg *pNCfg, const GU
pHelpText = NULL; pHelpText = NULL;
hr = pNCfgComp->GetDisplayName(&pDisplayName); hr = pNCfgComp->GetDisplayName(&pDisplayName);
hr = pNCfgComp->GetHelpText(&pHelpText); hr = pNCfgComp->GetHelpText(&pHelpText);
bChecked = TRUE; //ReactOS hack bChecked = FALSE;
hr = pNCfgComp->QueryInterface(IID_PPV_ARG(INetCfgComponentBindings, &pCompBind)); hr = pNCfgComp->QueryInterface(IID_PPV_ARG(INetCfgComponentBindings, &pCompBind));
if (SUCCEEDED(hr)) if (SUCCEEDED(hr))
{ {
@ -110,8 +110,6 @@ CNetConnectionPropertyUi::EnumComponents(HWND hDlgCtrl, INetCfg *pNCfg, const GU
hr = pCompBind->IsBoundTo(pAdapterCfgComp); hr = pCompBind->IsBoundTo(pAdapterCfgComp);
if (hr == S_OK) if (hr == S_OK)
bChecked = TRUE; bChecked = TRUE;
else
bChecked = FALSE;
} }
} }