@@ -387,7 +387,7 @@ private static Win32 ExeProgram(string path)
387
387
}
388
388
}
389
389
390
- private static IEnumerable < string > EnmuerateProgramsInDir ( string directory , string [ ] suffixes , bool recursive = true )
390
+ private static IEnumerable < string > EnumerateProgramsInDir ( string directory , string [ ] suffixes , bool recursive = true )
391
391
{
392
392
if ( ! Directory . Exists ( directory ) )
393
393
return Enumerable . Empty < string > ( ) ;
@@ -416,7 +416,7 @@ private static IEnumerable<Win32> UnregisteredPrograms(List<string> directories,
416
416
{
417
417
// Disabled custom sources are not in DisabledProgramSources
418
418
var paths = directories . AsParallel ( )
419
- . SelectMany ( s => EnmuerateProgramsInDir ( s , suffixes ) ) ;
419
+ . SelectMany ( s => EnumerateProgramsInDir ( s , suffixes ) ) ;
420
420
421
421
// Remove disabled programs in DisabledProgramSources
422
422
var programs = ExceptDisabledSource ( paths ) . Select ( x => GetProgramFromPath ( x , protocols ) ) ;
@@ -427,8 +427,8 @@ private static IEnumerable<Win32> StartMenuPrograms(string[] suffixes, string[]
427
427
{
428
428
var directory1 = Environment . GetFolderPath ( Environment . SpecialFolder . Programs ) ;
429
429
var directory2 = Environment . GetFolderPath ( Environment . SpecialFolder . CommonPrograms ) ;
430
- var paths1 = EnmuerateProgramsInDir ( directory1 , suffixes ) ;
431
- var paths2 = EnmuerateProgramsInDir ( directory2 , suffixes ) ;
430
+ var paths1 = EnumerateProgramsInDir ( directory1 , suffixes ) ;
431
+ var paths2 = EnumerateProgramsInDir ( directory2 , suffixes ) ;
432
432
433
433
var toFilter = paths1 . Concat ( paths2 ) ;
434
434
@@ -449,7 +449,7 @@ private static IEnumerable<Win32> PATHPrograms(string[] suffixes, string[] proto
449
449
450
450
paths = paths . Where ( x => commonParents . All ( parent => ! x . StartsWith ( parent , StringComparison . OrdinalIgnoreCase ) ) ) ;
451
451
452
- var toFilter = paths . AsParallel ( ) . SelectMany ( p => EnmuerateProgramsInDir ( p , suffixes , recursive : false ) ) ;
452
+ var toFilter = paths . AsParallel ( ) . SelectMany ( p => EnumerateProgramsInDir ( p , suffixes , recursive : false ) ) ;
453
453
454
454
var programs = ExceptDisabledSource ( toFilter . Distinct ( ) )
455
455
. Select ( x => GetProgramFromPath ( x , protocols ) ) ;
0 commit comments