From d6eb75c28230c78b3aca4f943b92480ddef0f234 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Fri, 3 Nov 2006 22:52:18 +0000 Subject: [PATCH] use return code instead of GetLastError() --- src/os/win32/win32_sigar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/os/win32/win32_sigar.c b/src/os/win32/win32_sigar.c index 507ea3f3..5d37cc5d 100644 --- a/src/os/win32/win32_sigar.c +++ b/src/os/win32/win32_sigar.c @@ -1891,7 +1891,7 @@ static int sigar_get_adapters_info(sigar_t *sigar, } if (rc != NO_ERROR) { - return GetLastError(); + return rc; } else { return SIGAR_OK; @@ -2108,7 +2108,7 @@ static int sigar_get_if_table(sigar_t *sigar, PMIB_IFTABLE *iftable) } if (rc != NO_ERROR) { - return GetLastError(); + return rc; } else { return SIGAR_OK;