From c914d298604ef7ad3934c3c213d3f8822d6646d9 Mon Sep 17 00:00:00 2001 From: Guillaume Buisson <contact@guillaume.dev> Date: ćšć, 20 5æ 2021 13:50:43 +0800 Subject: [PATCH] Several fixes (#120) --- src/library/os/windows/network.cpp | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/src/library/os/windows/network.cpp b/src/library/os/windows/network.cpp index 5116d39..db0fed9 100644 --- a/src/library/os/windows/network.cpp +++ b/src/library/os/windows/network.cpp @@ -73,7 +73,7 @@ return score; } -bool cmp(const OsAdapterInfo &a, const OsAdapterInfo &b) { return score(a) >= score(b); } +bool cmp(const OsAdapterInfo &a, const OsAdapterInfo &b) { return score(a) > score(b); } /** * * @param adapterInfos @@ -127,7 +127,6 @@ } IP_ADAPTER_INFO* pAdapter = pAdapterInfo; - FUNCTION_RETURN result = FUNC_RET_OK; while (pAdapter) { if (pAdapter->Type == MIB_IF_TYPE_ETHERNET) { OsAdapterInfo ai = {}; -- Gitblit v1.9.1