Changeset 216 for trunk/python/pyregfi
- Timestamp:
- 03/28/11 23:54:37 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/pyregfi/__init__.py
r215 r216 249 249 name = create_string_buffer(bytes(name)) 250 250 251 if self._find_element(self._hive.file, self._key. base, name, byref(index)):251 if self._find_element(self._hive.file, self._key._base, name, byref(index)): 252 252 return self._constructor(self._hive, 253 253 self._get_element(self._hive.file, 254 self._key. base,254 self._key._base, 255 255 index)) 256 256 raise KeyError('') … … 343 343 ret_val = None 344 344 if name == "data": 345 data_p = regfi.regfi_fetch_data(self._hive.file, self. base)345 data_p = regfi.regfi_fetch_data(self._hive.file, self._base) 346 346 try: 347 347 data_struct = data_p.contents … … 373 373 elif name == "data_raw": 374 374 # XXX: should we load the data without interpretation instead? 375 data_p = regfi.regfi_fetch_data(self._hive.file, self. base)375 data_p = regfi.regfi_fetch_data(self._hive.file, self._base) 376 376 try: 377 377 data_struct = data_p.contents … … 381 381 ret_val = _buffer2bytearray(data_struct.raw, 382 382 data_struct.size) 383 regfi.regfi_free_record(data_p) 383 regfi.regfi_free_record(data_p) 384 384 385 385 else:
Note: See TracChangeset
for help on using the changeset viewer.