Skip to content

Commit

Permalink
RegistryFS - Skip empty name keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Liryna authored Feb 18, 2022
1 parent ab5681f commit 9fc1586
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sample/RegistryFS/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ public NtStatus FindFiles(
}
foreach (var name in key.GetValueNames())
{
if (string.IsNullOrWhiteSpace(name))
{
continue;
}
var finfo = new FileInformation
{
FileName = name,
Expand Down Expand Up @@ -329,4 +333,4 @@ private static void Main()
}
}
}
}
}

0 comments on commit 9fc1586

Please sign in to comment.