Adam Martinson <amartinson(a)codeweavers.com> writes:
+ len = vsnprintf(NULL, 0, msg, ap);
+ buf = heap_alloc(len+1);
+ vsnprintf(buf, len+1, msg, ap);
vsnprintf can also return -1, check how this is done in other places.
--
Alexandre Julliard
julliard(a)winehq.org