Fix installation crashes when `allowservicelogon` is `true` (#660)

pull/663/head v2.10.1
Next Turn 2020-08-25 10:04:34 +08:00 committed by GitHub
parent ba562f20f7
commit 9c513e8584
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 4 deletions

View File

@ -17,7 +17,6 @@ namespace WinSW.Native
}
finally
{
_ = FreeSid(sid);
Marshal.FreeHGlobal(sid);
}
}

View File

@ -7,9 +7,6 @@ namespace WinSW.Native
{
internal static class SecurityApis
{
[DllImport(Libraries.Advapi32, SetLastError = false)]
internal static extern IntPtr FreeSid(IntPtr sid);
[DllImport(Libraries.Advapi32, SetLastError = true)]
internal static extern bool GetTokenInformation(
IntPtr tokenHandle,