msvcrt: Bump MSVCRT_MB_LEN_MAX to 6 and use it in MSVCRT__wctomb_l for default buffer length

Piotr Caban piotr.caban at gmail.com
Mon Jan 26 07:10:47 CST 2015


On 01/23/15 18:38, Orion Poplawski wrote:
> diff --git a/dlls/msvcrt/msvcrt.h b/dlls/msvcrt/msvcrt.h
> index 41f31b9..401628a 100644
> --- a/dlls/msvcrt/msvcrt.h
> +++ b/dlls/msvcrt/msvcrt.h
> @@ -47,7 +47,7 @@
>   #define MSVCRT_I64_MAX    (((__int64)0x7fffffff << 32) | 0xffffffff)
>   #define MSVCRT_I64_MIN    (-MSVCRT_I64_MAX-1)
>   #define MSVCRT_UI64_MAX   (((unsigned __int64)0xffffffff << 32) | 0xffffffff)
> -#define MSVCRT_MB_LEN_MAX 2
> +#define MSVCRT_MB_LEN_MAX 6
MB_LEN_MAX equals 5 on windows. It should probably be set to 5 here as 
well. Probably include/msvcrt/limits.h should also be changed.

Thanks,
Piotr



More information about the wine-devel mailing list