Skip to content

Commit

Permalink
Update VolumeInfoCache.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
stan-sz authored Oct 14, 2024
1 parent b75f301 commit 4bb1b64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Windows/VolumeInfoCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,12 @@ public VolumeInfo GetVolumeForPath(string path)
out ulong _);
if (!result)
{
int lastErr = Marshal.GetLastWin32Error();
if (lastErr == NativeMethods.ERROR_DEV_NOT_EXIST)
{
return null;
}

int lastErr = Marshal.GetLastWin32Error();
NativeMethods.ThrowSpecificIoException(lastErr,
$"Failed retrieving drive volume cluster layout information for {volumePaths.PrimaryDriveRootPath} with winerror {lastErr}");
}
Expand Down

0 comments on commit 4bb1b64

Please sign in to comment.