winbase.h: Add a few casts

Andrew Talbot Andrew.Talbot at talbotville.com
Mon Jun 26 13:26:41 CDT 2006


Changelog:
    winelib: Add a few casts.

diff -urN a/include/winbase.h b/include/winbase.h
--- a/include/winbase.h	2006-06-12 16:04:02.000000000 +0100
+++ b/include/winbase.h	2006-06-26 19:07:20.000000000 +0100
@@ -2072,7 +2072,7 @@
 {
     LPWSTR d = dst;
     LPCWSTR s = src;
-    UINT count = n;
+    UINT count = (UINT) n;
 
     while ((count > 1) && *s)
     {
@@ -2087,7 +2087,7 @@
 {
     LPSTR d = dst;
     LPCSTR s = src;
-    UINT count = n;
+    UINT count = (UINT) n;
 
     while ((count > 1) && *s)
     {
@@ -2102,12 +2102,12 @@
 {
     const WCHAR *s = str;
     while (*s) s++;
-    return s - str;
+    return (INT) (s - str);
 }
 
 extern inline INT WINAPI lstrlenA( LPCSTR str )
 {
-    return strlen( str );
+    return (INT) strlen( str );
 }
 
 extern inline LPWSTR WINAPI lstrcpyW( LPWSTR dst, LPCWSTR src )



More information about the wine-patches mailing list