http://bugs.winehq.org/show_bug.cgi?id=4482
------- Additional Comments From xerox_xerox2000@yahoo.co.uk 2006-04-02 03:20 ------- Created an attachment (id=1829) --> (http://bugs.winehq.org/attachment.cgi?id=1829&action=view) exe file shows different behaviour with native msvcrt
well, i tried the little sample at msdn and modified it a bit:
#include <stdarg.h> #include <wtypes.h>
void VarArg(LPCSTR formatstring, ...) { int nSize = 0; char buff[255]; va_list args; va_start(args, formatstring);
nSize = _vsnprintf( buff, sizeof(buff), formatstring, args); printf("nsize=%d\n", nSize); }
void main() { VarArg("Players\Player%d.plr", "Players\Player0.plr"); VarArg("Cannot open file `%s' (%s) ()", "");
}
gives:
WINEDLLOVERRIDES="msvcrt=n" wine a.exe nsize=24 nsize=25
and
wine a.exe nsize=24 nsize=33
so different results Maybe it's due to the strange `%s' -"thing