Skip to content

Commit dad7818

Browse files
authored
Correcting invocation of ScrollConsoleScreenBufferW - using pointers instead of values. (#1038)
1 parent 9489e1b commit dad7818

File tree

1 file changed

+2
-2
lines changed
  • terminal-ffm/src/main/java/org/jline/terminal/impl/ffm

1 file changed

+2
-2
lines changed

terminal-ffm/src/main/java/org/jline/terminal/impl/ffm/Kernel32.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,8 @@ public static int ScrollConsoleScreenBuffer(
235235
CHAR_INFO lpFill) {
236236
MethodHandle mh$ = requireNonNull(ScrollConsoleScreenBufferW$MH, "ScrollConsoleScreenBuffer");
237237
try {
238-
return (int)
239-
mh$.invokeExact(hConsoleOutput, lpScrollRectangle, lpClipRectangle, dwDestinationOrigin, lpFill);
238+
return (int) mh$.invokeExact(
239+
hConsoleOutput, lpScrollRectangle.seg, lpClipRectangle.seg, dwDestinationOrigin.seg, lpFill.seg);
240240
} catch (Throwable ex$) {
241241
throw new AssertionError("should not reach here", ex$);
242242
}

0 commit comments

Comments
 (0)