diff --git a/PInvoke/Security/AdvApi32/PSID.cs b/PInvoke/Security/AdvApi32/PSID.cs
index 042fc95f..03e845b1 100644
--- a/PInvoke/Security/AdvApi32/PSID.cs
+++ b/PInvoke/Security/AdvApi32/PSID.cs
@@ -126,9 +126,8 @@ namespace Vanara.PInvoke
/// A instance of the user account SID associated with a security token.
public static SafePSID FromToken(HTOKEN hToken)
{
- var hTok = new SafeHTOKEN((IntPtr)hToken, false);
- using var pUserToken = hTok.GetInfo(TOKEN_INFORMATION_CLASS.TokenUser);
- return new SafePSID(pUserToken.ToStructure().User.Sid);
+ using var hTok = new SafeHTOKEN((IntPtr)hToken, false);
+ return hTok.GetInfo(TOKEN_INFORMATION_CLASS.TokenUser).User.Sid;
}
/// Performs an explicit conversion from to .