mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-20 03:23:23 +08:00
[*] fix: committed wrong file
git-svn-id: https://pykd.svn.codeplex.com/svn@59107 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
parent
326daca391
commit
a256bf682d
@ -20,7 +20,7 @@ def getTypeWin7(p):
|
|||||||
"""
|
"""
|
||||||
pHeader = containingRecord(p, "nt", "_OBJECT_HEADER", "Body")
|
pHeader = containingRecord(p, "nt", "_OBJECT_HEADER", "Body")
|
||||||
pTypeIndexTable = getOffset("nt", "ObTypeIndexTable")
|
pTypeIndexTable = getOffset("nt", "ObTypeIndexTable")
|
||||||
return ptrPtr(pTypeIndexTable + (ptrSize() * pHeader->TypeIndex))
|
return ptrPtr(pTypeIndexTable + (ptrSize() * pHeader.TypeIndex))
|
||||||
|
|
||||||
def getTypeLegacy(p):
|
def getTypeLegacy(p):
|
||||||
"""
|
"""
|
||||||
@ -29,7 +29,7 @@ def getTypeLegacy(p):
|
|||||||
Implementation for before Win7
|
Implementation for before Win7
|
||||||
"""
|
"""
|
||||||
pHeader = containingRecord(p, "nt", "_OBJECT_HEADER", "Body")
|
pHeader = containingRecord(p, "nt", "_OBJECT_HEADER", "Body")
|
||||||
return ptrPtr(pHeader->Type)
|
return addr64(pHeader.Type)
|
||||||
|
|
||||||
# Select platform-specific function for getting object header
|
# Select platform-specific function for getting object header
|
||||||
if (ptrWord(getOffset("nt", "NtBuildNumber")) >= 7600):
|
if (ptrWord(getOffset("nt", "NtBuildNumber")) >= 7600):
|
||||||
|
Loading…
Reference in New Issue
Block a user