ntmemoryapi 2.2.1__tar.gz → 2.2.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: ntmemoryapi
3
- Version: 2.2.1
3
+ Version: 2.2.2
4
4
  Summary: Simple library for Windows to manipulate process virtual memory with stelthy syscall wraps.
5
5
  Author: Xenely
6
6
  Requires-Dist: psutil>=7.1.3
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "ntmemoryapi"
3
- version = "2.2.1"
3
+ version = "2.2.2"
4
4
  description = "Simple library for Windows to manipulate process virtual memory with stelthy syscall wraps."
5
5
  authors = [
6
6
  {name = "Xenely"}
@@ -554,13 +554,13 @@ class Process:
554
554
  try:
555
555
 
556
556
  # Read bytes into pre-allocated buffer
557
- self.read_into_buffer(scan_adderss, scan_size, ctypes.addressof(read_memory_buffer))
557
+ self.read_into_buffer(scan_adderss, scan_size, ctypes.c_void_p(ctypes.addressof(read_memory_buffer)))
558
558
 
559
559
  except Exception:
560
560
  pass
561
561
 
562
562
  # Pattern scan region using SIMD KMP algorithm
563
- self.__kmp.scanAOB(ctypes.addressof(read_memory_buffer), scan_size, pattern.strip().encode(), ctypes.c_uint64(scan_adderss), ctypes.c_uint64(return_first if return_first is not None else 0), ctypes.byref(scan_result := PatternScanBuffer()))
563
+ self.__kmp.scanAOB(ctypes.c_void_p(ctypes.addressof(read_memory_buffer)), scan_size, pattern.strip().encode(), ctypes.c_uint64(scan_adderss), ctypes.c_uint64(return_first if return_first is not None else 0), ctypes.byref(scan_result := PatternScanBuffer()))
564
564
 
565
565
  # Read result addresses
566
566
  addresses = scan_result.read()
File without changes