From: Young Ik Cho Date: Tue, 6 Aug 2013 02:10:20 +0000 (+0900) Subject: fix prevent issue X-Git-Tag: submit/tizen/20131210.080830^2^2~197 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4e378989523b990a93fd4c956c49c3eb1037312c;p=platform%2Fframework%2Fnative%2Fappfw.git fix prevent issue Change-Id: I905f3b3e1e65f9659164358b254c3fb50e8bb261 Signed-off-by: Young Ik Cho --- 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));