File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -39,17 +39,19 @@ static Win32Shell()
3939 try
4040 {
4141 using var shellFolder = ShellFolderExtensions . GetShellItemFromPathOrPidl ( path ) as ShellFolder ;
42- folder = ShellFolderExtensions . GetShellFileItem ( shellFolder ) ;
4342
44- if ( ( controlPanel . PIDL . IsParentOf ( shellFolder . PIDL , false ) ||
43+ if ( shellFolder is null ||
44+ ( controlPanel . PIDL . IsParentOf ( shellFolder . PIDL , false ) ||
4545 controlPanelCategoryView . PIDL . IsParentOf ( shellFolder . PIDL , false ) ) &&
46- ( shellFolder is null || ! shellFolder . Any ( ) ) )
46+ ! shellFolder . Any ( ) )
4747 {
4848 // Return null to force open unsupported items in explorer
4949 // only if inside control panel and folder appears empty
5050 return ( null , flc ) ;
5151 }
5252
53+ folder = ShellFolderExtensions . GetShellFileItem ( shellFolder ) ;
54+
5355 if ( action == "Enumerate" )
5456 {
5557 foreach ( var folderItem in shellFolder . Skip ( from ) . Take ( count ) )
You can’t perform that action at this time.
0 commit comments