Browse Source

Fix drive enumeration crash on Windows's Managed File Dialog.

pull/2995/head
Jumar Macato 7 years ago
parent
commit
9de04b3297
No known key found for this signature in database GPG Key ID: B19884DAC3A5BF3F
  1. 1
      src/Windows/Avalonia.Win32/WindowsMountedVolumeInfoListener.cs

1
src/Windows/Avalonia.Win32/WindowsMountedVolumeInfoListener.cs

@ -32,6 +32,7 @@ namespace Avalonia.Win32
var allDrives = DriveInfo.GetDrives();
var mountVolInfos = allDrives
.Where(p => p.IsReady)
.Select(p => new MountedVolumeInfo()
{
VolumeLabel = p.VolumeLabel,

Loading…
Cancel
Save