From acba9102f810718c37af4f7fc0d3e91c385b4e1c Mon Sep 17 00:00:00 2001 From: Joonbum Ko Date: Thu, 25 Mar 2021 12:51:06 +0900 Subject: [PATCH] Fixed wrong use of NULL checking macro. Change-Id: I9d1d11823a15395dac38360aff25d9c991351f53 Signed-off-by: Joonbum Ko --- src/tpl_wl_egl_thread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)", -- 2.7.4