Ignore:
Timestamp:
03/30/11 00:13:38 (13 years ago)
Author:
tim
Message:

added another test
made is_root check more correct

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/pyregfi/__init__.py

    r216 r217  
    329329
    330330    def is_root(self):
    331         # This is quicker than retrieving the root key for comparison and
    332         # is more trustworthy than trusting the key's flags.
    333         return ((self._hive.root_cell+REGFI_REGF_SIZE) == self.offset)
     331        return (self._hive.get_root() == self)
    334332
    335333
Note: See TracChangeset for help on using the changeset viewer.