[Bug 4500] New: msvcrt: regression in very simple test app.

Wine Bugs wine-bugs at winehq.org
Mon Feb 6 15:52:03 CST 2006


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 at winehq.org
        ReportedBy: xerox_xerox2000 at 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

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the wine-bugs mailing list