use return code instead of GetLastError()

This commit is contained in:
Doug MacEachern 2006-11-03 22:52:18 +00:00
parent 207aa97870
commit d6eb75c282
1 changed files with 2 additions and 2 deletions

View File

@ -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;