diff options
Diffstat (limited to 'libmsi/debug.h')
-rw-r--r-- | libmsi/debug.h | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/libmsi/debug.h b/libmsi/debug.h index 3cc76e5..1f9acc0 100644 --- a/libmsi/debug.h +++ b/libmsi/debug.h @@ -59,26 +59,7 @@ static inline const char *wine_dbgstr_an( const char * s, int n ) return s; } -static inline const char *wine_dbg_sprintf( const char *format, ...) -{ - static char *p_ret[10]; - static int i; - - char *ret; - unsigned len; - va_list ap; - - va_start(ap, format); - ret = g_strdup_vprintf(format, ap); - len = strlen(ret); - va_end(ap); - - i = (i + 1) % 10; - p_ret[i] = realloc(p_ret[i], len + 1); - strcpy(p_ret[i], ret); - g_free(ret); - return p_ret[i]; -} +const char *wine_dbg_sprintf( const char *format, ...); #define wine_dbg_printf(format,...) (printf(format, ## __VA_ARGS__), fflush(stdout)) #define WINE_DPRINTF(class, function, format, ...) \ |