vsnprintf doesnt return the len on windows on fail, so use _vscprintf
based on old git implementation (2009) Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>