Corrected an error, where keysyms were not allocated, causing an NRE.
This commit is contained in:
parent
1bb6569b46
commit
475ac46bdb
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ namespace OpenTK.Platform.X11
|
|||
IntPtr keysym_ptr = API.GetKeyboardMapping(window.Display, (byte)firstKeyCode,
|
||||
lastKeyCode - firstKeyCode + 1, ref keysyms_per_keycode);
|
||||
|
||||
Marshal.PtrToStructure(keysym_ptr, keysyms);
|
||||
keysyms = (IntPtr[])Marshal.PtrToStructure(keysym_ptr, typeof(IntPtr[]));
|
||||
API.Free(keysym_ptr);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue