SHLWAPI: fix some -Wsigned-compare warnings

Mike McCormack mike at codeweavers.com
Thu Sep 16 02:57:11 CDT 2004


ChangeLog:
* fix some -Wsigned-compare warnings
-------------- next part --------------
? dlls/shlwapi/shlwapi.dll-WSlvSJ.spec.c
Index: dlls/shlwapi/ordinal.c
===================================================================
RCS file: /home/wine/wine/dlls/shlwapi/ordinal.c,v
retrieving revision 1.95
diff -u -r1.95 ordinal.c
--- dlls/shlwapi/ordinal.c	13 Sep 2004 18:11:56 -0000	1.95
+++ dlls/shlwapi/ordinal.c	16 Sep 2004 06:23:43 -0000
@@ -576,8 +576,8 @@
     }
     memcpy( langbuf, mystr, min(*buflen,strlenW(mystr)+1)*sizeof(WCHAR) );
 
-    if(*buflen > lstrlenW(mystr)) {
-	*buflen = lstrlenW(mystr);
+    if(*buflen > strlenW(mystr)) {
+	*buflen = strlenW(mystr);
 	retval = S_OK;
     } else {
 	*buflen = 0;
Index: dlls/shlwapi/url.c
===================================================================
RCS file: /home/wine/wine/dlls/shlwapi/url.c,v
retrieving revision 1.36
diff -u -r1.36 url.c
--- dlls/shlwapi/url.c	8 Sep 2004 01:26:25 -0000	1.36
+++ dlls/shlwapi/url.c	16 Sep 2004 06:23:43 -0000
@@ -459,7 +459,8 @@
     HRESULT hr = S_OK;
     DWORD EscapeFlags;
     LPWSTR lpszUrlCpy, wk1, wk2, mp, root;
-    INT nLen, nByteLen, state;
+    INT nByteLen, state;
+    DWORD nLen;
 
     TRACE("(%s %p %p 0x%08lx)\n", debugstr_w(pszUrl), pszCanonicalized,
 	  pcchCanonicalized, dwFlags);


More information about the wine-patches mailing list