KERNEL32: declare inline string function WINAPI

Mike McCormack mike at codeweavers.com
Thu Mar 17 03:36:34 CST 2005


Fixes problems when compiling with -O0.

Mike

ChangeLog:
* declare inline string function WINAPI (found by Krzysztof Foltman)
-------------- next part --------------
Index: include/winbase.h
===================================================================
RCS file: /home/wine/wine/include/winbase.h,v
retrieving revision 1.227
diff -u -p -r1.227 winbase.h
--- include/winbase.h	24 Feb 2005 13:15:36 -0000	1.227
+++ include/winbase.h	17 Mar 2005 09:35:00 -0000
@@ -1983,7 +1983,7 @@ INT         WINAPI lstrlenW(LPCWSTR);
 
 /* string functions without the exception handler */
 
-extern inline LPWSTR lstrcpynW( LPWSTR dst, LPCWSTR src, INT n )
+extern inline LPWSTR WINAPI lstrcpynW( LPWSTR dst, LPCWSTR src, INT n )
 {
     LPWSTR d = dst;
     LPCWSTR s = src;
@@ -1998,7 +1998,7 @@ extern inline LPWSTR lstrcpynW( LPWSTR d
     return dst;
 }
 
-extern inline LPSTR lstrcpynA( LPSTR dst, LPCSTR src, INT n )
+extern inline LPSTR WINAPI lstrcpynA( LPSTR dst, LPCSTR src, INT n )
 {
     LPSTR d = dst;
     LPCSTR s = src;
@@ -2013,7 +2013,7 @@ extern inline LPSTR lstrcpynA( LPSTR dst
     return dst;
 }
 
-extern inline INT lstrlenW( LPCWSTR str )
+extern inline INT WINAPI lstrlenW( LPCWSTR str )
 {
     const WCHAR *s = str;
     while (*s) s++;
@@ -2025,19 +2025,19 @@ extern inline INT lstrlenA( LPCSTR str )
     return strlen( str );
 }
 
-extern inline LPWSTR lstrcpyW( LPWSTR dst, LPCWSTR src )
+extern inline LPWSTR WINAPI lstrcpyW( LPWSTR dst, LPCWSTR src )
 {
     WCHAR *p = dst;
     while ((*p++ = *src++));
     return dst;
 }
 
-extern inline LPSTR lstrcpyA( LPSTR dst, LPCSTR src )
+extern inline LPSTR WINAPI lstrcpyA( LPSTR dst, LPCSTR src )
 {
     return strcpy( dst, src );
 }
 
-extern inline LPWSTR lstrcatW( LPWSTR dst, LPCWSTR src )
+extern inline LPWSTR WINAPI lstrcatW( LPWSTR dst, LPCWSTR src )
 {
     WCHAR *p = dst;
     while (*p) p++;
@@ -2045,7 +2045,7 @@ extern inline LPWSTR lstrcatW( LPWSTR ds
     return dst;
 }
 
-extern inline LPSTR lstrcatA( LPSTR dst, LPCSTR src )
+extern inline LPSTR WINAPI lstrcatA( LPSTR dst, LPCSTR src )
 {
     return strcat( dst, src );
 }


More information about the wine-patches mailing list