diff options
Diffstat (limited to 'nuttx/graphics/nxtk/nxtk_gettoolbar.c')
-rw-r--r-- | nuttx/graphics/nxtk/nxtk_gettoolbar.c | 5 |
1 files changed, 3 insertions, 2 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 |