diff --git a/contrib/win32/win32compat/misc.c b/contrib/win32/win32compat/misc.c index 08d907960..014fa31ac 100644 --- a/contrib/win32/win32compat/misc.c +++ b/contrib/win32/win32compat/misc.c @@ -389,7 +389,7 @@ w32_ioctl(int d, int request, ...) return -1; } - wsize->ws_col = c_info.srWindow.Right - c_info.srWindow.Left + 1; + wsize->ws_col = c_info.dwSize.X; wsize->ws_row = c_info.srWindow.Bottom - c_info.srWindow.Top + 1; wsize->ws_xpixel = 640; wsize->ws_ypixel = 480;