Without this fix, an invalid cast exception will occur when writing the output file. For example, for a case like:
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\PCI\VEN_8086&DEV_100E&SUBSYS_001E8086&REV_02\3&267a616a&0&18\Device Parameters\Interrupt Management\Routing Info]
"Flags"=hex(4):02
…EntryKind.DWord case.
Without this fix, an invalid cast exception will occur when writing the output file. For example, for a case like: [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\PCI\VEN_8086&DEV_100E&SUBSYS_001E8086&REV_02\3&267a616a&0&18\Device Parameters\Interrupt Management\Routing Info] "Flags"=hex(4):02