8336375: Crash on paste to JShell

Reviewed-by: jvernee
This commit is contained in:
Jan Lahoda 2024-07-17 06:46:34 +00:00
parent 3babffd400
commit b9b0b8504e

@ -236,7 +236,7 @@ final class Kernel32 {
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$);
}