From cda745c79030f858222a451d6a07a09f7b795f71 Mon Sep 17 00:00:00 2001 From: Hwankyu Jhun Date: Tue, 14 Jul 2020 12:41:08 +0900 Subject: [PATCH] Fix functions related to attach/detach window - Changes return values Change-Id: I3b5898f5f6f96d8bd70098b160c77a030c005d1a Signed-off-by: Hwankyu Jhun --- src/aul_window.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/aul_window.c b/src/aul_window.c index 66ee23e..8c9dfa4 100644 --- a/src/aul_window.c +++ b/src/aul_window.c @@ -351,12 +351,12 @@ API int aul_window_attach(const char *parent_appid, const char *child_appid) int ret; if (parent_appid == NULL || child_appid == NULL) - return -1; + return AUL_R_EINVAL; b = bundle_create(); if (!b) { _E("out of memory"); - return -1; + return AUL_R_ENOMEM; } bundle_add_str(b, AUL_K_PARENT_APPID, parent_appid); @@ -374,12 +374,12 @@ API int aul_window_detach(const char *child_appid) int ret; if (child_appid == NULL) - return -1; + return AUL_R_EINVAL; b = bundle_create(); if (!b) { _E("out of memory"); - return -1; + return AUL_R_ENOMEM; } bundle_add_str(b, AUL_K_CHILD_APPID, child_appid); -- 2.7.4