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'.

File:
1 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);
Note: See TracChangeset for help on using the changeset viewer.