PATCH: wincon.h / alias

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Ciao, Marcus

Changelog:
	Fixed strict aliasing problem in
	__wine_GetLargestConsoleWindowSize_wrapper.

Index: include/wincon.h
===================================================================
RCS file: /home/wine/wine/include/wincon.h,v
retrieving revision 1.16
diff -u -u -r1.16 wincon.h
--- include/wincon.h	10 Mar 2002 00:02:34 -0000	1.16
+++ include/wincon.h	17 Nov 2002 11:40:34 -0000
@@ -180,8 +180,12 @@
 
 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)
 


[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux