Fix create return condition 82/276482/1
authorChanggyu Choi <changyu.choi@samsung.com>
Fri, 17 Jun 2022 07:01:48 +0000 (16:01 +0900)
committerChanggyu Choi <changyu.choi@samsung.com>
Fri, 17 Jun 2022 07:02:29 +0000 (16:02 +0900)
This patch fix worng create callback return error condition of efl app

Change-Id: I63fcfc393ae24793b2676a9f77b337be733aca7d
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
legacy/src/legacy/appcore_efl.cc

index d093dc3..0fa6679 100644 (file)
@@ -51,7 +51,7 @@ class EflAppContext : public AppCoreEflBase {
   int OnCreate() override {
     AppCoreEflBase::OnCreate();
     if (callback_->create == nullptr ||
-        callback_->create(callback_->data) == false)
+        callback_->create(callback_->data) < 0)
       return -1;
 
     return 0;