summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--winsup/cygwin/sec_auth.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/winsup/cygwin/sec_auth.cc b/winsup/cygwin/sec_auth.cc
index 59ee55339..a4e7458b3 100644
--- a/winsup/cygwin/sec_auth.cc
+++ b/winsup/cygwin/sec_auth.cc
@@ -309,7 +309,10 @@ load_user_profile (HANDLE token, struct passwd *pw, cygpsid &usersid)
bool
unload_user_profile (HANDLE token, HANDLE profile)
{
- return UnloadUserProfile (token, profile);
+ bool ret = UnloadUserProfile (token, profile);
+ if (!ret)
+ debug_printf ("UnloadUserProfile, %E");
+ return ret;
}
HANDLE