From dbe895f8175d3a97006deed809cd4a1b9ebee6b5 Mon Sep 17 00:00:00 2001 From: bdilly Date: Wed, 6 Jul 2011 20:56:55 +0000 Subject: [PATCH] Ecore File Download: don't mess with Ecore_Con event status For some reason it was passing !ev->status instead of ev->status to completion_cb, so all the information that should be provided (200, 400 or 404 error, ...) was becoming 0. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@61099 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/ecore_file/ecore_file_download.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/ecore_file/ecore_file_download.c b/src/lib/ecore_file/ecore_file_download.c index 043a797..8e25c01 100644 --- a/src/lib/ecore_file/ecore_file_download.c +++ b/src/lib/ecore_file/ecore_file_download.c @@ -286,7 +286,7 @@ _ecore_file_download_url_complete_cb(void *data __UNUSED__, int type __UNUSED__, if (!ECORE_MAGIC_CHECK(job, ECORE_MAGIC_FILE_DOWNLOAD_JOB)) return ECORE_CALLBACK_PASS_ON; if (job->completion_cb) - job->completion_cb(ecore_con_url_data_get(job->url_con), job->dst, !ev->status); + job->completion_cb(ecore_con_url_data_get(job->url_con), job->dst, ev->status); _job_list = eina_list_remove(_job_list, job); fclose(job->file); -- 2.7.4