Do not use addressof in lookup macro. Update keysym state in event handler.
[libguac-client-rdp.git] / include / rdp_keymap.h
index 39c9be4..85eb8f4 100644 (file)
@@ -111,7 +111,7 @@ extern const guac_rdp_keysym_altcode_map guac_rdp_keysym_altcode;
 /**
  * Simple macro for referencing the mapped value of an altcode or scancode for a given keysym.
  */
-#define GUAC_RDP_KEYSYM_LOOKUP(keysym_mapping, keysym) (&((keysym_mapping)[((keysym) & 0xFF00) >> 8][(keysym) & 0xFF]))
+#define GUAC_RDP_KEYSYM_LOOKUP(keysym_mapping, keysym) ((keysym_mapping)[((keysym) & 0xFF00) >> 8][(keysym) & 0xFF])
 
 /**
  * Keysym string containing only the left "shift" key.