[Pkg-e-commits] [SCM] Core abstraction layer for enlightenment DR 0.17 branch, upstream-vcs, updated. fbccf3b6cae3945e0db311041de91f346fccbae1
doursse
doursse at alioth.debian.org
Mon Jun 9 12:44:52 UTC 2008
The following commit has been merged in the upstream-vcs branch:
commit b9774c6550981090d2a126e736afeed3f2932a63
Author: doursse <doursse>
Date: Tue Jun 3 05:13:17 2008 +0000
[wince] fix stupid behavior of SetWindowLong during the creation of the the window
diff --git a/src/lib/ecore_wince/ecore_wince_window.c b/src/lib/ecore_wince/ecore_wince_window.c
index 83643f3..33ca92b 100644
--- a/src/lib/ecore_wince/ecore_wince_window.c
+++ b/src/lib/ecore_wince/ecore_wince_window.c
@@ -91,7 +91,8 @@ ecore_wince_window_new(Ecore_WinCE_Window *parent,
w->window = window;
- if (!SetWindowLong(window, GWL_USERDATA, (LONG)w))
+ SetLastError(0);
+ if (!SetWindowLong(window, GWL_USERDATA, (LONG)w) && (GetLastError() != 0))
{
DestroyWindow(window);
free(w);
--
Core abstraction layer for enlightenment DR 0.17
More information about the Pkg-e-commits
mailing list