Enlightenment CVS committal
Author : doursse
Project : e17
Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore_wince
Modified Files:
ecore_wince_window.c
Log Message:
[wince] fix stupid behavior of SetWindowLong during the creation of the the
window
===================================================================
RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore_wince/ecore_wince_window.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- ecore_wince_window.c 31 May 2008 05:05:01 -0000 1.1
+++ ecore_wince_window.c 3 Jun 2008 05:13:17 -0000 1.2
@@ -91,7 +91,8 @@
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);
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs