Fixed strict aliasing problem in

__wine_GetLargestConsoleWindowSize_wrapper.
This commit is contained in:
Marcus Meissner 2002-11-18 19:48:56 +00:00 committed by Alexandre Julliard
parent 7d75cfed76
commit 50dff3b407

View File

@ -180,8 +180,12 @@ DWORD WINAPI GetLargestConsoleWindowSize(HANDLE);
inline static COORD __wine_GetLargestConsoleWindowSize_wrapper(HANDLE h) inline static COORD __wine_GetLargestConsoleWindowSize_wrapper(HANDLE h)
{ {
COORD c;
DWORD dw = GetLargestConsoleWindowSize(h); DWORD dw = GetLargestConsoleWindowSize(h);
return *(COORD *)&dw;
c.X = LOWORD(dw);
c.Y = HIWORD(dw);
return c;
} }
#define GetLargestConsoleWindowSize(h) __wine_GetLargestConsoleWindowSize_wrapper(h) #define GetLargestConsoleWindowSize(h) __wine_GetLargestConsoleWindowSize_wrapper(h)