diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index 63bcc632f2..9d5a411fdb 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -709,7 +709,7 @@ void wxTextCtrl::ShowPosition(long pos) int linesToScroll = specifiedLineLineNo - currentLineLineNo; if (linesToScroll != 0) - (void)SendMessage(hWnd, EM_LINESCROLL, (WPARAM)0, (LPARAM)MAKELPARAM(linesToScroll, 0)); + (void)SendMessage(hWnd, EM_LINESCROLL, (WPARAM)0, (LPARAM)linesToScroll); } int wxTextCtrl::GetLineLength(long lineNo) const