Skip to content

Commit ff41616

Browse files
committed
Small improvments
1 parent 8932682 commit ff41616

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

windows/debug/symbols.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,10 @@ def _get_type_info(self, typeinfo, ires=None):
177177
windows.winproxy.LocalFree(res)
178178
return newres
179179

180+
@property
181+
def module(self):
182+
return self.resolver.get_module(self.modbase)
183+
180184
@property
181185
def name(self):
182186
return self._get_type_info(gdef.TI_GET_SYMNAME)

windows/syswow64.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,12 @@ def get_current_process_syswow_peb():
169169

170170
class CurrentProcessReadSyswow(process.Process):
171171
bitness = 64
172+
172173
def _get_handle(self):
173-
return winproxy.OpenProcess(dwProcessId=windows.current_process.pid)
174+
return winproxy.GetCurrentProcess()
175+
176+
def __del__(self):
177+
pass
174178

175179
def read_memory(self, addr, size):
176180
buffer_addr = ctypes.create_string_buffer(size)

windows/winobject/event_log.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,7 @@ class ImprovedEVT_VARIANT(gdef.EVT_VARIANT):
377377
gdef.EvtVarTypeUInt16 + gdef.EVT_VARIANT_TYPE_ARRAY : "UInt16Arr",
378378
gdef.EvtVarTypeUInt32 + gdef.EVT_VARIANT_TYPE_ARRAY : "UInt32Arr",
379379
gdef.EvtVarTypeUInt64 + gdef.EVT_VARIANT_TYPE_ARRAY : "UInt64Arr",
380+
gdef.EvtVarTypeHexInt64 + gdef.EVT_VARIANT_TYPE_ARRAY : "UInt64Arr",
380381
}
381382
NoneValue = None
382383

0 commit comments

Comments
 (0)