win: fix segfaults (wrong checking)
authoro.shcherbina <artem.popov@samsung.com>
Mon, 13 Oct 2014 16:07:36 +0000 (01:07 +0900)
committerDaniel Juyung Seo <seojuyung2@gmail.com>
Mon, 13 Oct 2014 16:07:36 +0000 (01:07 +0900)
Summary:
There were wrong checkings in elm_win_size_base_get and
elm_win_size_step_get
@fix

Reviewers: seoz, Hermet

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

src/lib/elm_win.c

index 9d469f6..c7e3466 100644 (file)
@@ -4192,7 +4192,7 @@ EOLIAN static void
 _elm_win_size_base_get(Eo *obj EINA_UNUSED, Elm_Win_Data *sd, int *w, int *h)
 {
    if (w) *w = sd->size_base_w;
-   if (w) *h = sd->size_base_h;
+   if (h) *h = sd->size_base_h;
 }
 
 EOLIAN static void
@@ -4210,7 +4210,7 @@ EOLIAN static void
 _elm_win_size_step_get(Eo *obj EINA_UNUSED, Elm_Win_Data *sd, int *w, int *h)
 {
    if (w) *w = sd->size_step_w;
-   if (w) *h = sd->size_step_h;
+   if (h) *h = sd->size_step_h;
 }
 
 EOLIAN static void