From 2c65d617310b933db2b6a05fb39ac32c20bc4044 Mon Sep 17 00:00:00 2001 From: Jonathan Atton Date: Sun, 22 Feb 2009 14:54:45 +0000 Subject: [PATCH] from vtorri: too much return in ecore_win32_window.c fix seg fault in ecore_evas_win32.c SVN revision: 39144 --- legacy/ecore/src/lib/ecore_evas/ecore_evas_win32.c | 8 ++++++-- legacy/ecore/src/lib/ecore_win32/ecore_win32_window.c | 1 - 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/legacy/ecore/src/lib/ecore_evas/ecore_evas_win32.c b/legacy/ecore/src/lib/ecore_evas/ecore_evas_win32.c index abf9ba1051..0cf836d857 100644 --- a/legacy/ecore/src/lib/ecore_evas/ecore_evas_win32.c +++ b/legacy/ecore/src/lib/ecore_evas/ecore_evas_win32.c @@ -254,7 +254,7 @@ _ecore_evas_win32_event_mouse_button_down(void *data __UNUSED__, int type __UNUS Ecore_Win32_Event_Mouse_Button_Down *e; Evas_Button_Flags flags = EVAS_BUTTON_NONE; - EINA_ERROR_PINFO("mouse button down (%f %dx%d)\n", e->time, e->x, e->y); + EINA_ERROR_PINFO("mouse button down\n"); e = event; ee = _ecore_evas_win32_match(e->window); @@ -266,6 +266,8 @@ _ecore_evas_win32_event_mouse_button_down(void *data __UNUSED__, int type __UNUS if (e->triple_click) flags |= EVAS_BUTTON_TRIPLE_CLICK; evas_event_feed_mouse_down(ee->evas, e->button, flags, e->time, NULL); + EINA_ERROR_PINFO("mouse button down (%f %dx%d)\n", e->time, e->x, e->y); + return 1; } @@ -276,7 +278,7 @@ _ecore_evas_win32_event_mouse_button_up(void *data __UNUSED__, int type __UNUSED Ecore_Win32_Event_Mouse_Button_Up *e; Evas_Button_Flags flags = EVAS_BUTTON_NONE; - EINA_ERROR_PINFO("mouse button up (%f %dx%d)\n", e->time, e->x, e->y); + EINA_ERROR_PINFO("mouse button up\n"); e = event; ee = _ecore_evas_win32_match(e->window); @@ -288,6 +290,8 @@ _ecore_evas_win32_event_mouse_button_up(void *data __UNUSED__, int type __UNUSED if (e->triple_click) flags |= EVAS_BUTTON_TRIPLE_CLICK; evas_event_feed_mouse_up(ee->evas, e->button, flags, e->time, NULL); + EINA_ERROR_PINFO("mouse button up (%f %dx%d)\n", e->time, e->x, e->y); + return 1; } diff --git a/legacy/ecore/src/lib/ecore_win32/ecore_win32_window.c b/legacy/ecore/src/lib/ecore_win32/ecore_win32_window.c index cc1d45f022..b60c260606 100644 --- a/legacy/ecore/src/lib/ecore_win32/ecore_win32_window.c +++ b/legacy/ecore/src/lib/ecore_win32/ecore_win32_window.c @@ -1126,7 +1126,6 @@ ecore_win32_window_internal_new(Ecore_Win32_Window *parent, EINA_ERROR_PERR("malloc() failed\n"); return NULL; } - return NULL; rect.left = 0; rect.top = 0;