From abbcb5b10f37efb5aaf8cc3fc412b29bc8258799 Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Tue, 1 Feb 2005 16:40:23 +0000 Subject: [PATCH] NtDisplayString: Convert Unicode string to OEM. svn path=/trunk/; revision=13380 --- reactos/ntoskrnl/inbv/inbv.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/reactos/ntoskrnl/inbv/inbv.c b/reactos/ntoskrnl/inbv/inbv.c index 2e888968e68..c16db544afb 100755 --- a/reactos/ntoskrnl/inbv/inbv.c +++ b/reactos/ntoskrnl/inbv/inbv.c @@ -59,6 +59,7 @@ InbvCheckBootVid(VOID) return(STATUS_SUCCESS); } + VOID STDCALL InbvAcquireDisplayOwnership(VOID) @@ -81,6 +82,7 @@ InbvDisplayString(IN PCHAR String) return FALSE; } + BOOLEAN STDCALL InbvResetDisplayParameters(ULONG SizeX, ULONG SizeY) @@ -88,6 +90,7 @@ InbvResetDisplayParameters(ULONG SizeX, ULONG SizeY) return(InbvResetDisplay()); } + VOID STDCALL INIT_FUNCTION InbvEnableBootDriver(IN BOOLEAN Enable) @@ -148,6 +151,7 @@ InbvEnableBootDriver(IN BOOLEAN Enable) } } + BOOLEAN STDCALL InbvEnableDisplayString(IN BOOLEAN Enable) @@ -221,13 +225,11 @@ NTSTATUS STDCALL NtDisplayString(IN PUNICODE_STRING DisplayString) { - ANSI_STRING AnsiString; + OEM_STRING OemString; - RtlUnicodeStringToAnsiString (&AnsiString, DisplayString, TRUE); + RtlUnicodeStringToOemString(&OemString, DisplayString, TRUE); + HalDisplayString(OemString.Buffer); + RtlFreeOemString(&OemString); - HalDisplayString (AnsiString.Buffer); - - RtlFreeAnsiString (&AnsiString); - - return(STATUS_SUCCESS); + return STATUS_SUCCESS; }