cedric pushed a commit to branch master.
commit 82584a85fb9bd843a2fff671846846505f510ab6
Author: Jean-Philippe Andre <[email protected]>
Date: Fri May 31 13:59:04 2013 +0900
evas/cserve2: Check for errors in evas sw engine
---
src/modules/evas/engines/software_generic/evas_engine.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/modules/evas/engines/software_generic/evas_engine.c
b/src/modules/evas/engines/software_generic/evas_engine.c
index ef766dd..75a9bbb 100644
--- a/src/modules/evas/engines/software_generic/evas_engine.c
+++ b/src/modules/evas/engines/software_generic/evas_engine.c
@@ -949,8 +949,7 @@ eng_image_load(void *data EINA_UNUSED, const char *file,
const char *key, int *e
ie = evas_cache2_image_open(evas_common_image_cache2_get(),
file, key, lo, error);
if (ie)
- evas_cache2_image_open_wait(ie);
-
+ *error = evas_cache2_image_open_wait(ie);
return ie;
}
#endif
@@ -969,8 +968,7 @@ eng_image_mmap(void *data EINA_UNUSED, Eina_File *f, const
char *key, int *error
ie = evas_cache2_image_open(evas_common_image_cache2_get(),
eina_file_filename_get(f), key, lo, error);
if (ie)
- evas_cache2_image_open_wait(ie);
-
+ *error = evas_cache2_image_open_wait(ie);
return ie;
}
#endif
--
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev