GCC-4 cleanup for x11drv/event.c

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Fri Oct 21 15:00:37 CDT 2005


Changelog:
	dlls/x11/drv/event.c:
	Fix some GCC-4 signess warnings

Review welcome!
-- 
Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
Index: wine/dlls/x11drv/event.c
===================================================================
RCS file: /home/wine/wine/dlls/x11drv/event.c,v
retrieving revision 1.59
diff -u -r1.59 event.c
--- wine/dlls/x11drv/event.c	12 Sep 2005 15:14:07 -0000	1.59
+++ wine/dlls/x11drv/event.c	21 Oct 2005 19:53:21 -0000
@@ -698,7 +698,7 @@
 
     if( !aux_long && p_data)  /* don't bother if > 64K */
     {
-        signed char *p = (signed char*) p_data;
+        char *p = (char*) p_data;
         char *p_drop;
 
         aux_long = 0;
@@ -707,7 +707,7 @@
             p_drop = p;
             if((u.i = *p) != -1 )
             {
-                INT len = GetShortPathNameA( p, NULL, 0 );
+                DWORD len = GetShortPathNameA( (const char *)p, NULL, 0 );
                 if (len) aux_long += len + 1;
                 else *p = -1;
             }
@@ -736,7 +736,7 @@
                 lpDrop->fWide = FALSE;
                 WIN_ReleasePtr(pDropWnd);
                 p_drop = (char *)(lpDrop + 1);
-                p = p_data;
+                p = (char*) p_data;
                 while(*p)
                 {
                     if( *p != -1 ) /* use only "good" entries */



More information about the wine-patches mailing list