summaryrefslogtreecommitdiff
path: root/uisimulator/win32
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator/win32')
-rw-r--r--uisimulator/win32/debug-win32.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/uisimulator/win32/debug-win32.c b/uisimulator/win32/debug-win32.c
index 6a65f4fcd3..31d934d418 100644
--- a/uisimulator/win32/debug-win32.c
+++ b/uisimulator/win32/debug-win32.c
@@ -22,6 +22,7 @@
char debugmembuf[100];
char debugbuf[200];
+
void debug( const char *message )
{
OutputDebugString (message);
@@ -30,9 +31,19 @@ void debug( const char *message )
void debugf(char *fmt, ...)
{
va_list ap;
-
+
+ va_start( ap, fmt );
+ wvsprintf( debugmembuf, fmt, ap );
+ va_end( ap );
+ debug ( debugmembuf );
+}
+
+void Logf(char *fmt, ...)
+{
+ va_list ap;
+
va_start( ap, fmt );
- wsprintf( debugmembuf, fmt, ap );
+ wvsprintf( debugmembuf, fmt, ap );
va_end( ap );
debug ( debugmembuf );
} \ No newline at end of file