From f1a25321297cdfbb6b06b1f3a509912e374f03dd Mon Sep 17 00:00:00 2001 From: Eric Pouech Date: Sat, 29 Apr 2000 17:16:00 +0000 Subject: [PATCH] Fixed GetLargestConsoleWindowSize prototype. --- include/winbase.h | 2 +- win32/console.c | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/include/winbase.h b/include/winbase.h index 2c2a0deb4b6..1f03449c65d 100644 --- a/include/winbase.h +++ b/include/winbase.h @@ -1301,7 +1301,7 @@ DWORD WINAPI GetFullPathNameA(LPCSTR,DWORD,LPSTR,LPSTR*); DWORD WINAPI GetFullPathNameW(LPCWSTR,DWORD,LPWSTR,LPWSTR*); #define GetFullPathName WINELIB_NAME_AW(GetFullPathName) BOOL WINAPI GetHandleInformation(HANDLE,LPDWORD); -DWORD WINAPI GetLargestConsoleWindowSize(HANDLE); +COORD WINAPI GetLargestConsoleWindowSize(HANDLE); DWORD WINAPI GetLengthSid(PSID); VOID WINAPI GetLocalTime(LPSYSTEMTIME); DWORD WINAPI GetLogicalDrives(void); diff --git a/win32/console.c b/win32/console.c index 768a2fe91d2..743c1749c80 100644 --- a/win32/console.c +++ b/win32/console.c @@ -441,9 +441,12 @@ BOOL WINAPI SetConsoleActiveScreenBuffer( /*********************************************************************** * GetLargestConsoleWindowSize (KERNEL32.226) */ -DWORD WINAPI GetLargestConsoleWindowSize( HANDLE hConsoleOutput ) +COORD WINAPI GetLargestConsoleWindowSize( HANDLE hConsoleOutput ) { - return (DWORD)MAKELONG(80,24); + COORD c; + c.x = 80; + c.y = 24; + return c; } /***********************************************************************