elm_photocam: fix correct return value in elm_photocam_file_set
authorYeongjong Lee <yj34.lee@samsung.com>
Tue, 26 Mar 2019 06:04:52 +0000 (15:04 +0900)
committerYeongjong Lee <yj34.lee@samsung.com>
Tue, 26 Mar 2019 06:05:10 +0000 (15:05 +0900)
Test Plan: `elm_photocam_file_set(NULL, "file_name");`

Reviewers: Hermet

Reviewed By: Hermet

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D8473

src/lib/elementary/efl_ui_image_zoomable.c

index 41fefb1..5522a08 100644 (file)
@@ -3378,8 +3378,8 @@ elm_photocam_zoom_mode_get(const Evas_Object *obj)
 EAPI Evas_Load_Error
 elm_photocam_file_set(Evas_Object *obj, const char *file)
 {
-   ELM_PHOTOCAM_CHECK(obj) EVAS_LOAD_ERROR_NONE;
-   EINA_SAFETY_ON_NULL_RETURN_VAL(file, EVAS_LOAD_ERROR_NONE);
+   ELM_PHOTOCAM_CHECK(obj) EVAS_LOAD_ERROR_GENERIC;
+   EINA_SAFETY_ON_NULL_RETURN_VAL(file, EVAS_LOAD_ERROR_GENERIC);
    if (efl_file_simple_load(obj, file, NULL)) return EVAS_LOAD_ERROR_NONE;
 
    Eina_Error err = eina_error_get();