Skip to content

Commit

Permalink
dotnet#51371 removed extra spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
mkhamoyan committed Jan 21, 2022
1 parent 100cac7 commit 507d239
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ protected string GetTestFileName(int? index = null, [CallerMemberName] string me
const int maxLength = 260 - 5; // Windows MAX_PATH minus a bit

int excessLength = testFilePath.Length - maxLength;

if (excessLength > 0)
{
// The path will be too long for Windows -- can we
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public NamedPipeClientStream(string serverName, string pipeName, PipeDirection d
}
if (impersonationLevel < TokenImpersonationLevel.None || impersonationLevel > TokenImpersonationLevel.Delegation)
{
throw new ArgumentOutOfRangeException(nameof(impersonationLevel), SR.ArgumentOutOfRange_ImpersonationInvalid);
throw new ArgumentOutOfRangeException(nameof(impersonationLevel), SR.ArgumentOutOfRange_ImpersonationInvalid);
}
if (inheritability < HandleInheritability.None || inheritability > HandleInheritability.Inheritable)
{
Expand All @@ -89,6 +89,7 @@ public NamedPipeClientStream(string serverName, string pipeName, PipeDirection d
{
IsCurrentUserOnly = true;
}

_normalizedPipePath = GetPipePath(serverName, pipeName);
_direction = direction;
_inheritability = inheritability;
Expand Down

0 comments on commit 507d239

Please sign in to comment.