Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 8e37ffc

Browse files
committed
dumb mistake
1 parent 1d161e9 commit 8e37ffc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/com/falsepattern/jwin32/memory/MemoryAllocator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ default MemorySegment callocPointer() {
179179
*/
180180
default MemorySegment referenceP(MemoryAddress pValue) {
181181
var ppValue = mallocPointer();
182-
MemoryUtil.setPointer(ppValue, pValue.segmentOffset(MemorySegment.globalNativeSegment()));
182+
MemoryUtil.setPointer(ppValue, pValue.address());
183183
return ppValue;
184184
}
185185

0 commit comments

Comments
 (0)