From 7a6fcc065f4f4e304ce47483714d492cc9e33089 Mon Sep 17 00:00:00 2001 From: watchwolf 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 git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@39144 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/ecore_evas/ecore_evas_win32.c | 8 ++++++-- src/lib/ecore_win32/ecore_win32_window.c | 1 - 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/lib/ecore_evas/ecore_evas_win32.c b/src/lib/ecore_evas/ecore_evas_win32.c index abf9ba1..0cf836d 100644 --- a/src/lib/ecore_evas/ecore_evas_win32.c +++ b/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/src/lib/ecore_win32/ecore_win32_window.c b/src/lib/ecore_win32/ecore_win32_window.c index cc1d45f..b60c260 100644 --- a/src/lib/ecore_win32/ecore_win32_window.c +++ b/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; -- 2.7.4