From dc53afb217b59c704ed4fba96162660282ae391d Mon Sep 17 00:00:00 2001 From: David McDonald Date: Wed, 5 Mar 2025 16:25:53 -0600 Subject: [PATCH] Code Review: Don't use to-be-deprecated static natives This was originally done to solve a problem where `f32` wasn't available in the native types from every kernel version. However, it ended up not being necessary - we can just omit `native_types` from the method call, and it will construct the types as-needed using the definition for `float` in `base_types` from the JSON files. --- volatility3/framework/plugins/windows/windowstations.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/volatility3/framework/plugins/windows/windowstations.py b/volatility3/framework/plugins/windows/windowstations.py index b9c6932f9..a077ef2fc 100644 --- a/volatility3/framework/plugins/windows/windowstations.py +++ b/volatility3/framework/plugins/windows/windowstations.py @@ -65,8 +65,6 @@ class WindowStations(interfaces.plugins.PluginInterface): The name of the constructed GUI table """ - native_types = intermed.native.x64NativeTable - if not symbols.symbol_table_is_64bit( context=context, symbol_table_name=symbol_table ): @@ -93,7 +91,6 @@ class WindowStations(interfaces.plugins.PluginInterface): sub_path=os.path.join("windows", "gui"), filename=symbol_filename, class_types=gui.class_types, - native_types=native_types, table_mapping=table_mapping, )