[client,common] guard ainput access with correct guard

This commit is contained in:
akallabeth 2024-03-22 20:20:26 +01:00 committed by akallabeth
parent 82dc655979
commit 8bd1e72dd4

View File

@ -2151,7 +2151,7 @@ BOOL freerdp_client_use_relative_mouse_events(rdpClientContext* ccontext)
const BOOL useRelative = freerdp_settings_get_bool(settings, FreeRDP_MouseUseRelativeMove);
const BOOL haveRelative = freerdp_settings_get_bool(settings, FreeRDP_HasRelativeMouseEvent);
BOOL ainput = false;
#if defined(CHANNEL_AINPUT_SERVER)
#if defined(CHANNEL_AINPUT_CLIENT)
ainput = ccontext->ainput != NULL;
#endif