Browse Source
Fix drive enumeration crash on Windows's Managed File Dialog.
pull/2995/head
Jumar Macato
7 years ago
No known key found for this signature in database
GPG Key ID: B19884DAC3A5BF3F
1 changed files with
1 additions and
0 deletions
-
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, |
|
|
|
|