Cygwin: user profile: add debug output to unload_user_profile

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2019-02-23 20:46:48 +01:00
parent 71b8777a71
commit 8eee25241e
1 changed files with 4 additions and 1 deletions

View File

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