kernel32: Moved _DebugOutput to kernel16.c.
authorAlexandre Julliard <julliard@winehq.org>
Tue, 6 Jan 2009 19:27:51 +0000 (20:27 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 6 Jan 2009 19:27:51 +0000 (20:27 +0100)
dlls/kernel32/debugger.c
dlls/kernel32/kernel16.c

index 6e7b4b1a4db826b80a96866cc7db1c514cba5852..b83647caf069278f3f5c5fcd61570bbb0b708766 100644 (file)
@@ -25,7 +25,6 @@
 #include "wine/winbase16.h"
 #include "wine/server.h"
 #include "kernel_private.h"
-#include "kernel16_private.h"
 #include "wine/debug.h"
 
 WINE_DEFAULT_DEBUG_CHANNEL(debugstr);
@@ -408,24 +407,6 @@ BOOL WINAPI CheckRemoteDebuggerPresent(HANDLE process, PBOOL DebuggerPresent)
     return TRUE;
 }
 
-/***********************************************************************
- *           _DebugOutput                    (KERNEL.328)
- */
-void WINAPIV _DebugOutput( WORD flags, LPCSTR spec, VA_LIST16 valist )
-{
-    char caller[101];
-
-    /* Decode caller address */
-    if (!GetModuleName16( GetExePtr(CURRENT_STACK16->cs), caller, sizeof(caller) ))
-        sprintf( caller, "%04X:%04X", CURRENT_STACK16->cs, CURRENT_STACK16->ip );
-
-    /* FIXME: cannot use wvsnprintf16 from kernel */
-    /* wvsnprintf16( temp, sizeof(temp), spec, valist ); */
-
-    /* Output */
-    FIXME("%s %04x %s\n", caller, flags, debugstr_a(spec) );
-}
-
 /***********************************************************************
  *           DebugSetProcessKillOnExit                    (KERNEL32.@)
  *
index 7ae378d9e4d34665130fd5500d1d4f1b8198657a..b90405797caa2c98eb6cc2e8e65359dfc69f58f3 100644 (file)
@@ -19,6 +19,7 @@
  */
 
 #include <stdarg.h>
+#include <stdio.h>
 
 #include "windef.h"
 #include "winbase.h"
@@ -264,3 +265,21 @@ void WINAPI WINHELP_EntryPoint( CONTEXT86 *context )
     HeapFree( GetProcessHeap(), 0, cmdline );
     ExitThread( exit_code );
 }
+
+/***********************************************************************
+ *           _DebugOutput                    (KERNEL.328)
+ */
+void WINAPIV _DebugOutput( WORD flags, LPCSTR spec, VA_LIST16 valist )
+{
+    char caller[101];
+
+    /* Decode caller address */
+    if (!GetModuleName16( GetExePtr(CURRENT_STACK16->cs), caller, sizeof(caller) ))
+        sprintf( caller, "%04X:%04X", CURRENT_STACK16->cs, CURRENT_STACK16->ip );
+
+    /* FIXME: cannot use wvsnprintf16 from kernel */
+    /* wvsnprintf16( temp, sizeof(temp), spec, valist ); */
+
+    /* Output */
+    FIXME("%s %04x %s\n", caller, flags, debugstr_a(spec) );
+}