From 4e378989523b990a93fd4c956c49c3eb1037312c Mon Sep 17 00:00:00 2001 From: Young Ik Cho Date: Tue, 6 Aug 2013 11:10:20 +0900 Subject: [PATCH] fix prevent issue Change-Id: I905f3b3e1e65f9659164358b254c3fb50e8bb261 Signed-off-by: Young Ik Cho --- src/app/FApp_ActiveWindowManager.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/FApp_ActiveWindowManager.cpp b/src/app/FApp_ActiveWindowManager.cpp index f06c428..1088790 100644 --- a/src/app/FApp_ActiveWindowManager.cpp +++ b/src/app/FApp_ActiveWindowManager.cpp @@ -325,7 +325,11 @@ _ActiveWindowManager::GetActiveApp(AppId& appId) const unsigned int windowId = GetActiveWindow(); const int processId = GetProcessId(windowId); char pkgname[255] = {0, }; - aul_app_get_pkgname_bypid(processId, pkgname, 255); + if (aul_app_get_pkgname_bypid(processId, pkgname, 255) != AUL_R_OK) + { + SysSecureLog(NID_APP, "Failed to get the package name from pid=%x appId=%ls", processId, appId.GetPointer()); + return E_SYSTEM; + } appId = _Aul::GetRealAppId(String(pkgname)); -- 2.7.4