From a256bf682d565d078c25fccaaa501032ea55e079 Mon Sep 17 00:00:00 2001 From: "SND\\EreTIk_cp" Date: Thu, 23 Dec 2010 11:56:03 +0000 Subject: [PATCH] [*] fix: committed wrong file git-svn-id: https://pykd.svn.codeplex.com/svn@59107 9b283d60-5439-405e-af05-b73fd8c4d996 --- samples/ntobj.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/ntobj.py b/samples/ntobj.py index 347c041..f2bf929 100644 --- a/samples/ntobj.py +++ b/samples/ntobj.py @@ -20,7 +20,7 @@ def getTypeWin7(p): """ pHeader = containingRecord(p, "nt", "_OBJECT_HEADER", "Body") pTypeIndexTable = getOffset("nt", "ObTypeIndexTable") - return ptrPtr(pTypeIndexTable + (ptrSize() * pHeader->TypeIndex)) + return ptrPtr(pTypeIndexTable + (ptrSize() * pHeader.TypeIndex)) def getTypeLegacy(p): """ @@ -29,7 +29,7 @@ def getTypeLegacy(p): Implementation for before Win7 """ pHeader = containingRecord(p, "nt", "_OBJECT_HEADER", "Body") - return ptrPtr(pHeader->Type) + return addr64(pHeader.Type) # Select platform-specific function for getting object header if (ptrWord(getOffset("nt", "NtBuildNumber")) >= 7600):