1
0

Network: Replaced magic number with named constant.

This commit is contained in:
Mattes D 2015-02-22 18:52:49 +01:00
parent c758482ece
commit 1551e29f00

View File

@ -98,7 +98,7 @@ AStringVector cNetwork::EnumLocalIPAddresses(void)
// Enumerate all active adapters
for (auto pCurrAddresses = pAddresses; pCurrAddresses != nullptr; pCurrAddresses = pCurrAddresses->Next)
{
if (pCurrAddresses->OperStatus != 1)
if (pCurrAddresses->OperStatus != IfOperStatusUp)
{
// Adapter not active, skip it:
continue;