from vtorri:
authorwatchwolf <watchwolf@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 22 Feb 2009 14:54:45 +0000 (14:54 +0000)
committerwatchwolf <watchwolf@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 22 Feb 2009 14:54:45 +0000 (14:54 +0000)
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
src/lib/ecore_win32/ecore_win32_window.c

index abf9ba1..0cf836d 100644 (file)
@@ -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;
 }
 
index cc1d45f..b60c260 100644 (file)
@@ -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;