#include <stdarg.h>
#include <stdio.h>
+ULONG DbgService( ULONG Service, PVOID Context1, PVOID Context2 );
+
VOID STDCALL OutputDebugStringA(LPCSTR lpOutputString)
{
- WCHAR DebugStringW[161];
- int i,j;
- i = 0;
- j = 0;
- while ( lpOutputString[i] != 0 )
- {
- while ( j < 160 && lpOutputString[i] != 0 )
- {
- DebugStringW[j] = (WCHAR)lpOutputString[i];
- i++;
- j++;
- }
- DebugStringW[j] = 0;
- OutputDebugStringW(DebugStringW);
- j = 0;
- }
- return;
+ ANSI_STRING AnsiString;
+ AnsiString.Buffer = lpOutputString;
+ AnsiString.Length = AnsiString.MaximumLength = lstrlenA( lpOutputString );
+ DbgService( 1, &AnsiString, NULL );
}
VOID STDCALL OutputDebugStringW(LPCWSTR lpOutputString)
{
UNICODE_STRING UnicodeOutput;
+ ANSI_STRING AnsiString;
+ char buff[512];
UnicodeOutput.Buffer = (WCHAR *)lpOutputString;
UnicodeOutput.Length = lstrlenW(lpOutputString)*sizeof(WCHAR);
UnicodeOutput.MaximumLength = UnicodeOutput.Length;
-
- NtDisplayString(&UnicodeOutput);
+ AnsiString.Buffer = buff;
+ AnsiString.MaximumLength = 512;
+ AnsiString.Length = 0;
+ if( UnicodeOutput.Length > 512 )
+ UnicodeOutput.Length = 512;
+ if( NT_SUCCESS( RtlUnicodeStringToAnsiString( &AnsiString, &UnicodeOutput, FALSE ) ) )
+ DbgService( 1, &AnsiString, NULL );
}
+
+
+
+
+
+
-# $Id: makefile,v 1.35 2000/01/14 02:22:17 ekohl Exp $
+# $Id: makefile,v 1.36 2000/01/23 08:16:20 phreak Exp $
#
# ReactOS Operating System
#
BASE_CFLAGS = -I../../include -D__NTDLL__
+include ../../rules.mak
IMAGE_BASE = 0x77f60000
ifneq ($(HOST),mingw32-windows)
endif
#WARNINGS_ARE_ERRORS = yes
-include ../../rules.mak