Adam Martinson <amartin...@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 julli...@winehq.org