From 2b6be658d513ada743389a12afa02d4a2e394e00 Mon Sep 17 00:00:00 2001 From: jeon Date: Tue, 19 Jan 2021 20:01:16 +0900 Subject: [PATCH] input_generator: fix a invalid condition - change request_touch_count to max_touch_count Change-Id: I1d1695d95872973f94894bcacde54a98d34f9508 --- src/efl_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/efl_util.c b/src/efl_util.c index 22c6e56..c6ad457 100644 --- a/src/efl_util.c +++ b/src/efl_util.c @@ -1822,7 +1822,7 @@ efl_util_input_generate_touch(efl_util_inputgen_h inputgen_h, int idx, EINA_SAFETY_ON_FALSE_RETURN_VAL((x > 0 && y > 0), EFL_UTIL_ERROR_INVALID_PARAMETER); EINA_SAFETY_ON_FALSE_RETURN_VAL(inputgen_h->init_type & EFL_UTIL_INPUT_DEVTYPE_TOUCHSCREEN, EFL_UTIL_ERROR_NO_SUCH_DEVICE); - if (idx >= _eflutil.wl.devmgr.request_touch_count) + if (idx >= _eflutil.wl.devmgr.max_touch_count) return EFL_UTIL_ERROR_INVALID_PARAMETER; EINA_SAFETY_ON_NULL_RETURN_VAL(_eflutil.wl.devmgr.devicemgr, EFL_UTIL_ERROR_INVALID_PARAMETER); -- 2.7.4