File tree Expand file tree Collapse file tree 3 files changed +13
-6
lines changed Expand file tree Collapse file tree 3 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 5
5
using NFluent ;
6
6
using NLog ;
7
7
using NUnit . Framework ;
8
+ using Registry . Cells ;
8
9
using Registry . Other ;
9
10
10
11
namespace Registry . Test
@@ -663,12 +664,17 @@ public void HBinSizeShouldNotMatchReadSize()
663
664
}
664
665
665
666
[ Test ]
666
- [ Ignore ( "Unknown test source file." ) ]
667
+
667
668
public void OneOff ( )
668
669
{
669
- var r = new RegistryHive ( @"C:\Users\eric\Desktop\SAM " ) ;
670
+ var r = new RegistryHive ( @"C:\temp\SYSTEM " ) ;
670
671
r . RecoverDeleted = true ;
672
+ r . FlushRecordListsAfterParse = false ;
671
673
r . ParseHive ( ) ;
674
+
675
+ var sss = r . CellRecords . Values . OfType < NkCellRecord > ( ) . Where ( f =>
676
+ ( f . Flags & NkCellRecord . FlagEnum . HiveEntryRootKey ) == NkCellRecord . FlagEnum . HiveEntryRootKey ) ;
677
+
672
678
}
673
679
674
680
Original file line number Diff line number Diff line change 10
10
<Copyright >Eric Zimmerman</Copyright >
11
11
<PackageProjectUrl >https://github.com/EricZimmerman/Registry</PackageProjectUrl >
12
12
<RepositoryUrl >https://github.com/EricZimmerman/Registry</RepositoryUrl >
13
- <AssemblyVersion >1.1.0.0</AssemblyVersion >
14
- <FileVersion >1.1.0.0</FileVersion >
15
- <Version >1.1.0.0</Version >
13
+ <AssemblyVersion >1.1.0.1</AssemblyVersion >
14
+ <FileVersion >1.1.0.1</FileVersion >
15
+ <Version >1.1.0.1</Version >
16
+ <PackageLicenseExpression >MIT</PackageLicenseExpression >
16
17
</PropertyGroup >
17
18
18
19
<PropertyGroup Condition =" '$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|netstandard2.0|AnyCPU'" >
Original file line number Diff line number Diff line change @@ -958,7 +958,7 @@ public bool ParseHive()
958
958
//here we are looking for the flag
959
959
var rootNode =
960
960
CellRecords . Values . OfType < NkCellRecord > ( )
961
- . SingleOrDefault (
961
+ . FirstOrDefault (
962
962
f =>
963
963
( f . Flags & NkCellRecord . FlagEnum . HiveEntryRootKey ) ==
964
964
NkCellRecord . FlagEnum . HiveEntryRootKey ) ;
You can’t perform that action at this time.
0 commit comments