Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 5bdeb5b

Browse files
committed
Merge pull request #2466 from dotnet-bot/from-tfs
Merge changes from TFS
2 parents 6ea3d21 + 95e0926 commit 5bdeb5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/System.IO.FileSystem/src/System/IO/WinRTFileSystem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ public override FileStreamBase Open(string fullPath, FileMode mode, FileAccess a
477477
private async Task<FileStreamBase> OpenAsync(string fullPath, FileMode mode, FileAccess access, FileShare share, int bufferSize, FileOptions options, FileStream parent)
478478
{
479479
// When trying to open the root directory, we need to throw an Access Denied
480-
if (PathHelpers.GetRootLength(fullPath) == fullPath.Length)
480+
if (PathInternal.GetRootLength(fullPath) == fullPath.Length)
481481
throw Win32Marshal.GetExceptionForWin32Error(Interop.mincore.Errors.ERROR_ACCESS_DENIED, fullPath);
482482

483483
// Win32 CreateFile returns ERROR_PATH_NOT_FOUND when given a path that ends with '\'

0 commit comments

Comments
 (0)