win: fix segfaults (wrong checking)

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
This commit is contained in:
o.shcherbina 2014-10-14 01:07:36 +09:00 committed by Daniel Juyung Seo
parent 2f7460acfb
commit 92f5ba1bfb
1 changed files with 2 additions and 2 deletions

View 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