Skip to content

Commit

Permalink
Correcting invocation of ScrollConsoleScreenBufferW - using pointers …
Browse files Browse the repository at this point in the history
…instead of values. (#1038)
  • Loading branch information
lahodaj authored Jul 17, 2024
1 parent 9489e1b commit dad7818
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,8 @@ public static int ScrollConsoleScreenBuffer(
CHAR_INFO lpFill) {
MethodHandle mh$ = requireNonNull(ScrollConsoleScreenBufferW$MH, "ScrollConsoleScreenBuffer");
try {
return (int)
mh$.invokeExact(hConsoleOutput, lpScrollRectangle, lpClipRectangle, dwDestinationOrigin, lpFill);
return (int) mh$.invokeExact(
hConsoleOutput, lpScrollRectangle.seg, lpClipRectangle.seg, dwDestinationOrigin.seg, lpFill.seg);
} catch (Throwable ex$) {
throw new AssertionError("should not reach here", ex$);
}
Expand Down

0 comments on commit dad7818

Please sign in to comment.