diff --git a/sample/RegistryFS/Program.cs b/sample/RegistryFS/Program.cs index b4a8d57c..3378da58 100644 --- a/sample/RegistryFS/Program.cs +++ b/sample/RegistryFS/Program.cs @@ -126,6 +126,10 @@ public NtStatus FindFiles( } foreach (var name in key.GetValueNames()) { + if (string.IsNullOrWhiteSpace(name)) + { + continue; + } var finfo = new FileInformation { FileName = name, @@ -329,4 +333,4 @@ private static void Main() } } } -} \ No newline at end of file +}