[PATCH 2/2] msvcp140: add sprintf

Nikolay Sivov bunglehead at gmail.com
Thu Jul 28 00:45:27 CDT 2016


> +#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.



More information about the wine-devel mailing list