Changeset 22123 for branches/swt/include


Ignore:
Timestamp:
Feb 14, 2016, 2:29:03 PM (10 years ago)
Author:
rousseau
Message:

Corrected some string related mismatches [odin]

In 'heapstring.h', 'strncasecmp' is mapped to 'lstrncmpiA', but the
latter used 'int' for the length and not 'size_t'. According to the C++
language documentation, 'size_t' is an 'unsigned int'.

Location:
branches/swt/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/swt/include/heapstring.h

    r21916 r22123  
    88
    99#include <odin.h>
    10 
     10#include <string.h>
    1111#include <wine/unicode.h>
    1212//SvL: strcase -> case insensitive!
     
    3434int    WIN32API lstrcmpA       (LPCSTR arg1, LPCSTR  arg2);
    3535int    WIN32API lstrcmpW       (LPCWSTR arg1, LPCWSTR arg2);
    36 int    WIN32API lstrncmpA      (LPCSTR arg1, LPCSTR  arg2, int i);
    37 int    WIN32API lstrncmpW      (LPCWSTR arg1, LPCWSTR arg2, int i);
    38 int    WIN32API lstrncmpiA     (LPCSTR arg1, LPCSTR  arg2, int i);
    39 int    WIN32API lstrncmpiW     (LPCWSTR arg1, LPCWSTR arg2, int i);
     36int    WIN32API lstrncmpA      (LPCSTR arg1, LPCSTR  arg2, size_t l);
     37int    WIN32API lstrncmpW      (LPCWSTR arg1, LPCWSTR arg2, size_t l);
     38int    WIN32API lstrncmpiA     (LPCSTR arg1, LPCSTR  arg2, size_t l);
     39int    WIN32API lstrncmpiW     (LPCWSTR arg1, LPCWSTR arg2, size_t l);
    4040#define lstrcmpniW lstrncmpiW
    4141LPSTR  WIN32API lstrcpyA       (LPSTR arg1, LPCSTR  arg2);
  • branches/swt/include/win/winbase.h

    r22081 r22123  
    22712271INT       WINAPI lstrcmpiW(LPCWSTR,LPCWSTR);
    22722272#define     lstrcmpi WINELIB_NAME_AW(lstrcmpi)
    2273 int       WINAPI lstrncmpiA(LPCSTR, LPCSTR, int);
    2274 int       WINAPI lstrncmpiW(LPCWSTR, LPCWSTR, int);
     2273int       WINAPI lstrncmpiA(LPCSTR, LPCSTR, size_t);
     2274int       WINAPI lstrncmpiW(LPCWSTR, LPCWSTR, size_t);
    22752275#define     lstrncmpi WINELIB_NAME_AW(lstrncmpi)
    22762276
Note: See TracChangeset for help on using the changeset viewer.