Skip to content

Commit

Permalink
pgSMB2 fix minor issue in WinAPI error fallbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
MutonUfoAI committed Sep 9, 2016
1 parent 74d8cbf commit 956dc9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Plugins/pgSMB2/pgSMB2/Roaming.cs
Original file line number Diff line number Diff line change
Expand Up @@ -546,12 +546,13 @@ private string GetExistingUserProfile(string username, string password, string u
}
}

m_logger.InfoFormat("SID found:{0}", userSID);
if (!Abstractions.Windows.User.FixProfileList(userSID))
{
m_logger.DebugFormat("Error in FixProfileList {0}", userSID);
}

return Abstractions.Windows.User.GetProfileDir(username, password, new SecurityIdentifier(userinfo4.user_sid));
return Abstractions.Windows.User.GetProfileDir(username, password, new SecurityIdentifier(userSID));
}

public Boolean userAdd(Dictionary<string,string> settings, string username, string password, string comment)
Expand Down

0 comments on commit 956dc9f

Please sign in to comment.