Skip to content

Commit 676c925

Browse files
committed
Update
1 parent 35d19cc commit 676c925

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Files.App.Storage/Storables/WindowsStorage/WindowsStorableHelpers.Registry.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
using Windows.Win32.Foundation;
66
using Windows.Win32.System.Registry;
77

8+
// There are two kinds of ShellNew entry residence:
9+
//
10+
// 1.) .docx > Word.Document.12 > ShellNew
11+
// 2.) .mdb > SellNew
12+
13+
814
namespace Files.App.Storage
915
{
1016
public unsafe static partial class WindowsStorableHelpers
@@ -45,7 +51,7 @@ public static string[] EnumerateRegistryKeyNames(HKEY hKey)
4551
else
4652
{
4753
// An error occurred, handle it accordingly
48-
break;
54+
return [];
4955
}
5056
}
5157

0 commit comments

Comments
 (0)