Skip to content

Commit 8c8487c

Browse files
authored
1 parent 8611c86 commit 8c8487c

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/Microsoft.PowerShell.Security/security/AclCommands.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,7 +1060,7 @@ public SwitchParameter Passthru
10601060
/// Returns a newly allocated SACL with no ACEs in it.
10611061
/// Free the returned SACL by calling Marshal.FreeHGlobal.
10621062
/// </summary>
1063-
private IntPtr GetEmptySacl()
1063+
private static IntPtr GetEmptySacl()
10641064
{
10651065
IntPtr pSacl = IntPtr.Zero;
10661066
bool ret = true;
@@ -1246,7 +1246,7 @@ private IntPtr GetSaclWithCapId(string capStr)
12461246
/// and the previous state of this privilege. Free the returned token
12471247
/// by calling NativeMethods.CloseHandle.
12481248
/// </summary>
1249-
private IntPtr GetTokenWithEnabledPrivilege(
1249+
private static IntPtr GetTokenWithEnabledPrivilege(
12501250
string privilege,
12511251
NativeMethods.TOKEN_PRIVILEGE previousState)
12521252
{

src/Microsoft.PowerShell.Security/security/CertificateProvider.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1374,7 +1374,7 @@ private void AttemptToImportPkiModule()
13741374
_hasAttemptedToLoadPkiModule = true;
13751375
}
13761376

1377-
private string MyGetChildName(string path)
1377+
private static string MyGetChildName(string path)
13781378
{
13791379
// Verify the parameters
13801380

@@ -1920,7 +1920,7 @@ private void DoRemove(X509Certificate2 cert, bool fDeleteKey, bool fMachine, str
19201920
/// </summary>
19211921
/// <param name="storeHandle">An IntPtr for store handle.</param>
19221922
/// <returns>No return.</returns>
1923-
private void CommitUserDS(IntPtr storeHandle)
1923+
private static void CommitUserDS(IntPtr storeHandle)
19241924
{
19251925
if (!Security.NativeMethods.CertControlStore(
19261926
storeHandle,

0 commit comments

Comments
 (0)