mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-11 12:17:38 +02:00
Fix up refactoring of the get_structure method.
This commit is contained in:
@@ -36,7 +36,7 @@ class ObjectInterface(validity.ValidityRoutines, metaclass = ABCMeta):
|
||||
|
||||
def cast(self, new_structure_name):
|
||||
"""Returns a new object at the offset and from the layer that the current object inhabits"""
|
||||
object_template = self._context.symbol_space.resolve(new_structure_name)
|
||||
object_template = self._context.symbol_space.get_structure(new_structure_name)
|
||||
return object_template(context = self._context, layer_name = self._layer_name, offset = self._offset)
|
||||
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user