File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Plugins/Flow.Launcher.Plugin.Explorer/Search/WindowsIndex Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -47,14 +47,14 @@ private static async IAsyncEnumerable<SearchResult> ExecuteWindowsIndexSearchAsy
4747 while ( await dataReader . ReadAsync ( token ) )
4848 {
4949 token . ThrowIfCancellationRequested ( ) ;
50- if ( dataReader . GetValue ( 0 ) == DBNull . Value || dataReader . GetValue ( 1 ) == DBNull . Value )
50+ if ( dataReader . GetValue ( 0 ) is DBNull
51+ || dataReader . GetValue ( 1 ) is not string rawFragmentPath
52+ || string . Equals ( rawFragmentPath , "file:" , StringComparison . OrdinalIgnoreCase ) )
5153 {
5254 continue ;
5355 }
5456 // # is URI syntax for the fragment component, need to be encoded so LocalPath returns complete path
55- var encodedFragmentPath = dataReader
56- . GetString ( 1 )
57- . Replace ( "#" , "%23" , StringComparison . OrdinalIgnoreCase ) ;
57+ var encodedFragmentPath = rawFragmentPath . Replace ( "#" , "%23" , StringComparison . OrdinalIgnoreCase ) ;
5858
5959 var path = new Uri ( encodedFragmentPath ) . LocalPath ;
6060
You can’t perform that action at this time.
0 commit comments