[SDL] Fixed a stack corruption issue on win32

This commit is contained in:
Stefanos A 2014-05-05 12:46:48 +02:00
parent 495ded54d8
commit dffabcb94a

View file

@ -1444,6 +1444,12 @@ namespace OpenTK.Platform.SDL2
[FieldOffset(0)]
public DropEvent drop;
#endif
// Ensure the structure is big enough
// This hack is necessary, because until we
// map all possible events (see above)s
[FieldOffset(0)]
private unsafe fixed byte reserved[128];
}
[StructLayout(LayoutKind.Explicit)]