mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
Fixed strict aliasing problem in
__wine_GetLargestConsoleWindowSize_wrapper.
This commit is contained in:
parent
7d75cfed76
commit
50dff3b407
@ -180,8 +180,12 @@ DWORD WINAPI GetLargestConsoleWindowSize(HANDLE);
|
||||
|
||||
inline static COORD __wine_GetLargestConsoleWindowSize_wrapper(HANDLE h)
|
||||
{
|
||||
COORD c;
|
||||
DWORD dw = GetLargestConsoleWindowSize(h);
|
||||
return *(COORD *)&dw;
|
||||
|
||||
c.X = LOWORD(dw);
|
||||
c.Y = HIWORD(dw);
|
||||
return c;
|
||||
}
|
||||
#define GetLargestConsoleWindowSize(h) __wine_GetLargestConsoleWindowSize_wrapper(h)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user