mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 20:31:01 +00:00
Pointer native value easily
This commit is contained in:
@@ -58,9 +58,7 @@ import java.util.logging.Logger;
|
||||
public class Win32ProcessTools extends ProcessTools {
|
||||
|
||||
private static long pointerToAddress(Pointer p) {
|
||||
String s = p.toString();
|
||||
s = s.replace("native@0x", "");
|
||||
return Long.parseLong(s, 16);
|
||||
return Pointer.nativeValue(p);
|
||||
}
|
||||
|
||||
public static List<MEMORY_BASIC_INFORMATION> getPageRanges(WinNT.HANDLE hOtherProcess) {
|
||||
|
||||
Reference in New Issue
Block a user