http://bugs.winehq.org/show_bug.cgi?id=4500
Summary: msvcrt: regression in very simple test app. Product: Wine Version: CVS Platform: Other OS/Version: Linux Status: UNCONFIRMED Keywords: regression, download Severity: normal Priority: P2 Component: wine-misc AssignedTo: wine-bugs@winehq.org ReportedBy: xerox_xerox2000@yahoo.co.uk
Hi, there have been several regressions in msvcrt in the SeriousSam demo. I'll leave bug 4482 for a regression that took place between wine's june and july version 2005. I think there's also a bug/regression in _vsnprintf
here's modified sample from msdn; modifications are based on what SeriousSam passes to _vsnprintf:
#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) ()", "");
}
The exe can be found at http://bugs.winehq.org/attachment.cgi?id=1829&action=view
it gives:
WINEDLLOVERRIDES="msvcrt=n" wine a.exe nsize=24 nsize=25
same result with wine 0.9.5
with wine 0.9.7:
wine a.exe nsize=24 nsize=33