Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/utils/mkgroup.c')
-rw-r--r--winsup/utils/mkgroup.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/winsup/utils/mkgroup.c b/winsup/utils/mkgroup.c
index 3034e457a..6854f09d1 100644
--- a/winsup/utils/mkgroup.c
+++ b/winsup/utils/mkgroup.c
@@ -388,7 +388,7 @@ enum_local_groups (BOOL domain, domlist_t *dom_or_machine, const char *sep,
&sid_length, domain_name, &domname_len,
&acc_type))
{
- print_win_error (rc);
+ print_win_error (GetLastError ());
fprintf (stderr, " (%ls)\n", buffer[i].lgrpi0_name);
continue;
}
@@ -406,7 +406,7 @@ enum_local_groups (BOOL domain, domlist_t *dom_or_machine, const char *sep,
domain_name, &domname_len,
&acc_type))
{
- print_win_error (rc);
+ print_win_error (GetLastError ());
fprintf(stderr, " (%ls)\n", domname);
continue;
}
@@ -538,7 +538,7 @@ enum_groups (BOOL domain, domlist_t *dom_or_machine, const char *sep,
domain_name, &domname_len,
&acc_type))
{
- print_win_error (rc);
+ print_win_error (GetLastError ());
fprintf(stderr, " (%ls)\n", buffer[i].grpi2_name);
continue;
}
@@ -557,7 +557,7 @@ enum_groups (BOOL domain, domlist_t *dom_or_machine, const char *sep,
domain_name, &domname_len,
&acc_type))
{
- print_win_error (rc);
+ print_win_error (GetLastError ());
fprintf(stderr, " (%ls)\n", domname);
continue;
}