[Bug 4482] msvcrt: Serious Sam First Encounter demo still crashes

Wine Bugs wine-bugs at winehq.org
Sat Feb 4 03:20:05 CST 2006


http://bugs.winehq.org/show_bug.cgi?id=4482





------- Additional Comments From xerox_xerox2000 at 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

-- 
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