From b9b0b8504ec989ad0687188de4bccfe2c04e5d64 Mon Sep 17 00:00:00 2001 From: Jan Lahoda Date: Wed, 17 Jul 2024 06:46:34 +0000 Subject: [PATCH] 8336375: Crash on paste to JShell Reviewed-by: jvernee --- .../jdk/internal/org/jline/terminal/impl/ffm/Kernel32.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jdk.internal.le/share/classes/jdk/internal/org/jline/terminal/impl/ffm/Kernel32.java b/src/jdk.internal.le/share/classes/jdk/internal/org/jline/terminal/impl/ffm/Kernel32.java index 0c485819f57dc..4e7adbe335550 100644 --- a/src/jdk.internal.le/share/classes/jdk/internal/org/jline/terminal/impl/ffm/Kernel32.java +++ b/src/jdk.internal.le/share/classes/jdk/internal/org/jline/terminal/impl/ffm/Kernel32.java @@ -236,7 +236,7 @@ public static int ScrollConsoleScreenBuffer( MethodHandle mh$ = requireNonNull(ScrollConsoleScreenBufferW$MH, "ScrollConsoleScreenBuffer"); try { return (int) - mh$.invokeExact(hConsoleOutput, lpScrollRectangle, lpClipRectangle, dwDestinationOrigin, lpFill); + mh$.invokeExact(hConsoleOutput, lpScrollRectangle.seg, lpClipRectangle.seg, dwDestinationOrigin.seg, lpFill.seg); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); }