From: jeon Date: Tue, 19 Jan 2021 11:01:16 +0000 (+0900) Subject: input_generator: fix a invalid condition X-Git-Tag: accepted/tizen/unified/20210120.120838^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F98%2F251798%2F1;p=platform%2Fcore%2Fapi%2Fefl-util.git input_generator: fix a invalid condition - change request_touch_count to max_touch_count Change-Id: I1d1695d95872973f94894bcacde54a98d34f9508 --- 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);