diff --git a/dlls/msvcrt/locale.c b/dlls/msvcrt/locale.c index 15eef0a485..e679a28b70 100644 --- a/dlls/msvcrt/locale.c +++ b/dlls/msvcrt/locale.c @@ -542,6 +542,40 @@ int CDECL __crtLCMapStringA( return LCMapStringA(lcid,mapflags,src,srclen,dst,dstlen); } +/********************************************************************* + * __crtCompareStringA (MSVCRT.@) + */ +int CDECL __crtCompareStringA( LCID lcid, DWORD flags, const char *src1, int len1, + const char *src2, int len2 ) +{ + FIXME("(lcid %x, flags %x, %s(%d), %s(%d), partial stub\n", + lcid, flags, debugstr_a(src1), len1, debugstr_a(src2), len2 ); + /* FIXME: probably not entirely right */ + return CompareStringA( lcid, flags, src1, len1, src2, len2 ); +} + +/********************************************************************* + * __crtCompareStringW (MSVCRT.@) + */ +int CDECL __crtCompareStringW( LCID lcid, DWORD flags, const MSVCRT_wchar_t *src1, int len1, + const MSVCRT_wchar_t *src2, int len2 ) +{ + FIXME("(lcid %x, flags %x, %s(%d), %s(%d), partial stub\n", + lcid, flags, debugstr_w(src1), len1, debugstr_w(src2), len2 ); + /* FIXME: probably not entirely right */ + return CompareStringW( lcid, flags, src1, len1, src2, len2 ); +} + +/********************************************************************* + * __crtGetLocaleInfoW (MSVCRT.@) + */ +int CDECL __crtGetLocaleInfoW( LCID lcid, LCTYPE type, MSVCRT_wchar_t *buffer, int len ) +{ + FIXME("(lcid %x, type %x, %p(%d), partial stub\n", lcid, type, buffer, len ); + /* FIXME: probably not entirely right */ + return GetLocaleInfoW( lcid, type, buffer, len ); +} + /********************************************************************* * localeconv (MSVCRT.@) */ diff --git a/dlls/msvcrt/msvcrt.spec b/dlls/msvcrt/msvcrt.spec index e92b0742e1..10a8686cfd 100644 --- a/dlls/msvcrt/msvcrt.spec +++ b/dlls/msvcrt/msvcrt.spec @@ -84,8 +84,9 @@ @ extern __argc MSVCRT___argc @ extern __argv MSVCRT___argv @ extern __badioinfo MSVCRT___badioinfo -@ stub __crtCompareStringA -@ stub __crtGetLocaleInfoW +@ cdecl __crtCompareStringA(long long str long str long) +@ cdecl __crtCompareStringW(long long wstr long wstr long) +@ cdecl __crtGetLocaleInfoW(long long ptr long) @ cdecl __crtLCMapStringA(long long str long ptr long long long) @ cdecl __dllonexit(ptr ptr ptr) @ cdecl __doserrno() MSVCRT___doserrno