diff options
Diffstat (limited to 'nuttx/graphics/nxtk')
-rw-r--r-- | nuttx/graphics/nxtk/nxtk_gettoolbar.c | 5 | ||||
-rw-r--r-- | nuttx/graphics/nxtk/nxtk_getwindow.c | 6 |
2 files changed, 6 insertions, 5 deletions
diff --git a/nuttx/graphics/nxtk/nxtk_gettoolbar.c b/nuttx/graphics/nxtk/nxtk_gettoolbar.c index 7d2b11840..c5908f53b 100644 --- a/nuttx/graphics/nxtk/nxtk_gettoolbar.c +++ b/nuttx/graphics/nxtk/nxtk_gettoolbar.c @@ -102,10 +102,11 @@ void nxtk_gettoolbar(NXTKWINDOW hfwnd, FAR const struct nxgl_rect_s *rect, struct nxgl_rect_s getrect; #ifdef CONFIG_DEBUG - if (!hwnd || !rect || !dest) + if (!hfwnd || !rect || !dest) { + gvdbg("Invalid parameters\n"); errno = EINVAL; - return ERROR; + return; } #endif diff --git a/nuttx/graphics/nxtk/nxtk_getwindow.c b/nuttx/graphics/nxtk/nxtk_getwindow.c index 88d1d4d0e..f6df2c3ad 100644 --- a/nuttx/graphics/nxtk/nxtk_getwindow.c +++ b/nuttx/graphics/nxtk/nxtk_getwindow.c @@ -102,10 +102,10 @@ void nxtk_getwindow(NXTKWINDOW hfwnd, FAR const struct nxgl_rect_s *rect, struct nxgl_rect_s getrect; #ifdef CONFIG_DEBUG - if (!hwnd || !rect || !dest) + if (!hfwnd || !rect || !dest) { - errno = EINVAL; - return ERROR; + gvdbg("Invalid parameters\n"); + return; } #endif |