rimmed pushed a commit to branch eflete-1.18.

http://git.enlightenment.org/tools/eflete.git/commit/?id=97b42c22413f631282c24d1b85d3b330f0f87a76

commit 97b42c22413f631282c24d1b85d3b330f0f87a76
Author: Andrii Kroitor <an.kroi...@samsung.com>
Date:   Thu Sep 15 13:12:11 2016 +0300

    project_manager_export_resources: fix eina_lock_take result check
    
    Fix svace WID 436588, 436636, 436639, 436683
---
 src/bin/project_manager/project_manager_export_resources.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/bin/project_manager/project_manager_export_resources.c 
b/src/bin/project_manager/project_manager_export_resources.c
index deed8c6..8de585a 100644
--- a/src/bin/project_manager/project_manager_export_resources.c
+++ b/src/bin/project_manager/project_manager_export_resources.c
@@ -117,7 +117,7 @@ void
 _image_resources_feedback_job(void *data, Ecore_Thread *th)
 {
    Feedback_Thread_Data *ftd = (Feedback_Thread_Data *)data;
-   if (!eina_lock_take(&ftd->mutex))
+   if (eina_lock_take(&ftd->mutex) != EINA_LOCK_SUCCEED)
      {
        ERR("Failed access data");
        ecore_thread_cancel(th);
@@ -234,7 +234,7 @@ void
 _sound_resources_feedback_job(void *data, Ecore_Thread *th)
 {
    Feedback_Thread_Data *ftd = (Feedback_Thread_Data *)data;
-   if (!eina_lock_take(&ftd->mutex))
+   if (eina_lock_take(&ftd->mutex) != EINA_LOCK_SUCCEED)
      {
        ERR("Failed access data");
        ecore_thread_cancel(th);
@@ -320,7 +320,7 @@ void
 _font_resources_feedback_job(void *data, Ecore_Thread *th)
 {
    Feedback_Thread_Data *ftd = (Feedback_Thread_Data *)data;
-   if (!eina_lock_take(&ftd->mutex))
+   if (eina_lock_take(&ftd->mutex) != EINA_LOCK_SUCCEED)
      {
        ERR("Failed access data");
        ecore_thread_cancel(th);
@@ -414,7 +414,7 @@ void
 _tones_resources_feedback_job(void *data, Ecore_Thread *th)
 {
    Feedback_Thread_Data *ftd = (Feedback_Thread_Data *)data;
-   if (!eina_lock_take(&ftd->mutex))
+   if (eina_lock_take(&ftd->mutex) != EINA_LOCK_SUCCEED)
      {
        ERR("Failed access data");
        ecore_thread_cancel(th);
@@ -461,7 +461,7 @@ void
 _colorclasses_resources_feedback_job(void *data, Ecore_Thread *th)
 {
    Feedback_Thread_Data *ftd = (Feedback_Thread_Data *)data;
-   if (!eina_lock_take(&ftd->mutex))
+   if (eina_lock_take(&ftd->mutex) != EINA_LOCK_SUCCEED)
      {
        ERR("Failed access data");
        ecore_thread_cancel(th);
@@ -518,7 +518,7 @@ void
 _styles_resources_feedback_job(void *data, Ecore_Thread *th)
 {
    Feedback_Thread_Data *ftd = (Feedback_Thread_Data *)data;
-   if (!eina_lock_take(&ftd->mutex))
+   if (eina_lock_take(&ftd->mutex) != EINA_LOCK_SUCCEED)
      {
        ERR("Failed access data");
        ecore_thread_cancel(th);

-- 


Reply via email to