32 |
|
|
33 |
|
static void inline _cdecl winbug( char *s, ...) |
34 |
|
{ |
35 |
< |
va_list vargs; |
35 |
> |
va_list vargs; |
36 |
|
char msg[1024], date[50], hours[50]; |
37 |
< |
struct _timeb tstruct; |
37 |
> |
struct _timeb tstruct; |
38 |
|
|
39 |
|
_ftime( &tstruct ); |
40 |
|
_strtime( hours ); |
41 |
|
_strdate( date ); |
42 |
< |
wsprintf( msg, "B2: %s %s:%03u ", date, hours, tstruct.millitm ); |
42 |
> |
sprintf( msg, "B2: %s %s:%03u ", date, hours, tstruct.millitm ); |
43 |
|
|
44 |
|
va_start( vargs, s ); |
45 |
< |
wvsprintf( &msg[strlen(msg)], s, vargs ); |
45 |
> |
vsprintf( &msg[strlen(msg)], s, vargs ); |
46 |
|
va_end( vargs ); |
47 |
|
|
48 |
|
OutputDebugString(msg); |