File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed
Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change 22using Files . App . Filesystem . Security ;
33using Files . App . Shell ;
44using Files . Backend . Helpers ;
5- using Files . Shared ;
6- using Files . Shared . Enums ;
7- using Files . Shared . Extensions ;
85using Microsoft . Extensions . Logging ;
96using Microsoft . Win32 ;
10- using System ;
117using System . Collections . Concurrent ;
12- using System . Collections . Generic ;
13- using System . ComponentModel ;
14- using System . Diagnostics ;
158using System . IO ;
16- using System . Linq ;
179using System . Runtime . InteropServices ;
1810using System . Security . Principal ;
19- using System . Threading ;
20- using System . Threading . Tasks ;
2111using Tulpep . ActiveDirectoryObjectPicker ;
2212using Vanara . PInvoke ;
2313using Vanara . Windows . Shell ;
@@ -522,7 +512,7 @@ public static void TryCancelOperation(string operationId)
522512 {
523513 Name = x . ProcessName ,
524514 Pid = x . Id ,
525- FileName = x . MainModule ? . FileName ,
515+ FileName = SafetyExtensions . IgnoreExceptions ( ( ) => x . MainModule ? . FileName ) ,
526516 AppName = SafetyExtensions . IgnoreExceptions ( ( ) => x . MainModule ? . FileVersionInfo ? . FileDescription )
527517 } ) . ToList ( ) ;
528518 processes . ForEach ( x => x . Dispose ( ) ) ;
You can’t perform that action at this time.
0 commit comments