From a762deaeb1e6ccccbab3f5f13125a54411ea657f Mon Sep 17 00:00:00 2001 From: minkyu kim Date: Mon, 15 Apr 2013 20:40:59 +0900 Subject: [PATCH] rollback for the CaptureScreenN api Change-Id: Ie892a538095b88bd4cef3181102cb538a5751191 --- src/ui/FUi_SystemUtilImpl.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/ui/FUi_SystemUtilImpl.cpp b/src/ui/FUi_SystemUtilImpl.cpp index 0d8eb8a..146f9e4 100644 --- a/src/ui/FUi_SystemUtilImpl.cpp +++ b/src/ui/FUi_SystemUtilImpl.cpp @@ -286,11 +286,7 @@ _SystemUtilImpl::CaptureScreenN(void) int height = DisplayHeight(pDpy.get(), DefaultScreen(pDpy.get())); void* pDump = utilx_create_screen_shot(pDpy.get(), width, height); - if (pDump == null) - { - SysLog(NID_UI, "pDump is invalid. Check if screen is off"); - return null; - } + SysTryReturn(NID_UI, pDump, null, E_OPERATION_FAILED, "[E_OPERATION_FAILED] pDump is invalid. something wrong!"); std::unique_ptr pBuffer(new (std::nothrow) ByteBuffer()); SysTryReturn(NID_UI, pBuffer != null, null, E_OPERATION_FAILED, "[E_OPERATION_FAILED] Memory allocation failure."); -- 2.7.4