ClearLastResult();
UiApp* pUiApp = pUiAppFactory();
SysTryReturnResult(NID_APP, pUiApp != null, E_OUT_OF_MEMORY, "App allocation failed.");
- SysTryReturnResult(NID_APP, !IsFailed(GetLastResult()), E_OUT_OF_MEMORY, "App allocation failed with %s.", GetLastResult());
+ SysTryReturnResult(NID_APP, !IsFailed(GetLastResult()), E_OUT_OF_MEMORY, "App allocation failed with %s.", GetErrorMessage(GetLastResult()));
_AppImpl* pAppImpl = _AppImpl::GetInstance();
SysTryReturnResult(NID_APP, pAppImpl != null, E_SYSTEM, "application instance is not available.");