netkvm: fix false error returned in notify object
When enumeration of bindings return S_FALSE this does not
indicate an error, just end of components list.
@@ -196,6 +196,11 @@ HRESULT CNotifyObject::EnableVFBindings(INetCfgComponent *pNetCfgCom,
ReleaseObj(pNetCfgBindPath);
pNetCfgBindPath = NULL;
hResult = pEnumNetCfgBindPath->Next(1, &pNetCfgBindPath, &ulNum);
+ if (hResult == S_FALSE) {
+ // last one reached
+ hResult = S_OK;
+ break;
+ }
}
ReleaseObj(pEnumNetCfgBindPath);
}
