[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: [PATCH 2/2] msvcp140: add sprintf
From:       Nikolay Sivov <bunglehead () gmail ! com>
Date:       2016-07-28 5:45:27
Message-ID: 0a48e449-3aed-530c-6123-cffbef0a2bfa () gmail ! com
[Download RAW message or body]

> +#if _MSVCP_VER >= 140
> +int __cdecl sprintf(char *buf, const char *fmt, ...)
> +{
> +    int ret;
> +    __ms_va_list valist;
> +    __ms_va_start(valist, fmt);
> +    ret = __stdio_common_vsprintf(2, buf, -1, fmt, NULL, valist);
> +    __ms_va_end(valist);
> +    return ret;
> +}
> +#endif

Are we missing patch 1/2 that adds msvcp140? Also won't it work the same
if you forward it to MSVCRT_sprintf? If _common_ functions should
actually be used, options should use existing private defines.



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic