From: Joonbum Ko Date: Thu, 25 Mar 2021 03:51:06 +0000 (+0900) Subject: Fixed wrong use of NULL checking macro. X-Git-Tag: accepted/tizen/unified/20210330.111307~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=acba9102f810718c37af4f7fc0d3e91c385b4e1c;p=platform%2Fcore%2Fuifw%2Flibtpl-egl.git Fixed wrong use of NULL checking macro. Change-Id: I9d1d11823a15395dac38360aff25d9c991351f53 Signed-off-by: Joonbum Ko --- diff --git a/src/tpl_wl_egl_thread.c b/src/tpl_wl_egl_thread.c index 41bc081..d79e3af 100755 --- a/src/tpl_wl_egl_thread.c +++ b/src/tpl_wl_egl_thread.c @@ -2028,7 +2028,7 @@ __tpl_wl_egl_surface_set_rotation_capability(tpl_surface_t *surface, wl_egl_surface = (tpl_wl_egl_surface_t *)surface->backend.data; - TPL_CHECK_ON_TRUE_RETURN_VAL(wl_egl_surface, TPL_ERROR_INVALID_PARAMETER); + TPL_CHECK_ON_NULL_RETURN_VAL(wl_egl_surface, TPL_ERROR_INVALID_PARAMETER); TPL_INFO("[SET_PREROTATION_CAPABILITY]", "wl_egl_surface(%p) prerotation capability set to [%s]", @@ -2048,7 +2048,7 @@ __tpl_wl_egl_surface_set_post_interval(tpl_surface_t *surface, wl_egl_surface = (tpl_wl_egl_surface_t *)surface->backend.data; - TPL_CHECK_ON_TRUE_RETURN_VAL(wl_egl_surface, TPL_ERROR_INVALID_PARAMETER); + TPL_CHECK_ON_NULL_RETURN_VAL(wl_egl_surface, TPL_ERROR_INVALID_PARAMETER); TPL_INFO("[SET_POST_INTERVAL]", "wl_egl_surface(%p) post_interval(%d -> %d)",