fix prevent issue
authorYoung Ik Cho <youngik.cho@samsung.com>
Tue, 6 Aug 2013 02:10:20 +0000 (11:10 +0900)
committerYoung Ik Cho <youngik.cho@samsung.com>
Tue, 6 Aug 2013 02:10:20 +0000 (11:10 +0900)
Change-Id: I905f3b3e1e65f9659164358b254c3fb50e8bb261
Signed-off-by: Young Ik Cho <youngik.cho@samsung.com>
src/app/FApp_ActiveWindowManager.cpp

index f06c428..1088790 100644 (file)
@@ -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));