Fix: get owning process method from _ETHREAD

This commit is contained in:
Donghyun Kim
2022-05-02 00:00:33 +09:00
parent 8ac2b6ac89
commit 78eb31014b
@@ -448,9 +448,9 @@ class KMUTANT(objects.StructType, pool.ExecutiveObject):
class ETHREAD(objects.StructType):
"""A class for executive thread objects."""
def owning_process(self, kernel_layer: str = None) -> interfaces.objects.ObjectInterface:
def owning_process(self) -> interfaces.objects.ObjectInterface:
"""Return the EPROCESS that owns this thread."""
return self.ThreadsProcess.dereference(kernel_layer)
return self.Tcb.Process.dereference().cast("_EPROCESS")
def get_cross_thread_flags(self) -> str:
dictCrossThreadFlags = {