#include <shortcut.h>
#include <livebox-service/livebox-service.h>
+#include <livebox-service/livebox-errno.h>
#include <FBaseSysLog.h>
#include <FBase.h>
pAppWidgetProviders->Construct();
int ret = livebox_service_get_pkglist(GetAppWidgetProviderInfoCallback, pAppWidgetProviders.get());
- SysTryReturn(NID_SHELL, ret == 0, null, E_SYSTEM, "[E_SYSTEM] Failed to invoke livebox_service_get_pkglist, ret (%d)", ret);
-
+ SysTryReturn(NID_SHELL, !LB_STATUS_IS_ERROR(ret), null, E_SYSTEM, "[E_SYSTEM] Failed to invoke livebox_service_get_pkglist, ret (%d)", ret);
+
return pAppWidgetProviders.release();
}