dotnet/runtime

Incorrect use of DisableMediaInsertionPrompt

Ouverte

#28 605 ouverte le 1 févr. 2019

 (7 commentaires) (0 réaction) (0 personne assignée)C# (5 445 forks)batch import
area-System.IOhelp wanted

Métriques du dépôt

Stars
 (17 886 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

Description

Unless I'm very much confused, it appears that the FileSystemEnumerator constructor uses DisableMediaInsertionPrompt incorrectly such that it will do nothing because it calls 'new DisableMediaInsertionPrompt()' instead of DisableMediaInsertionPrompt.Create().

I just happened to notice this while scrolling through the code. I don't know exactly in which situations the undesirable media prompt would occur and don't have a particular need for this to be fixed.

Guide contributeur