summaryrefslogtreecommitdiff
path: root/src/lib/ecore_win32/ecore_win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ecore_win32/ecore_win32.c')
-rw-r--r--src/lib/ecore_win32/ecore_win32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ecore_win32/ecore_win32.c b/src/lib/ecore_win32/ecore_win32.c
index 411c2f0eb8..37b79565b4 100644
--- a/src/lib/ecore_win32/ecore_win32.c
+++ b/src/lib/ecore_win32/ecore_win32.c
@@ -44,11 +44,11 @@ _ecore_win32_window_procedure(HWND window,
44 WPARAM window_param, 44 WPARAM window_param,
45 LPARAM data_param) 45 LPARAM data_param)
46{ 46{
47 Ecore_Win32_Callback_Data _data;
47 Ecore_Win32_Callback_Data *data; 48 Ecore_Win32_Callback_Data *data;
48 DWORD coord; 49 DWORD coord;
49 50
50 data = (Ecore_Win32_Callback_Data *)malloc(sizeof(Ecore_Win32_Callback_Data)); 51 data = &_data;
51 if (!data) return DefWindowProc(window, message, window_param, data_param);
52 52
53 data->window = window; 53 data->window = window;
54 data->message = message; 54 data->message = message;