[PATCH 2/2] vsnprintfW: Return (int)written when given a NULL buffer and zero len
hugh.mcmaster at outlook.com
Tue Jan 6 06:55:15 CST 2015
msvcrt.dll's _vsnprintf and _vsnwprintf return the number of chars that would be written when given a NULL buffer and zero len, but Wine currently returns -1. This patch alters Wine's vsnprintfW (found in libs/wine/string.c) to follow msvcrt's behaviour in this special case.
This patch is essential for dynamic memory management used in upcoming patches.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 829 bytes
Desc: not available
More information about the wine-patches