NtDisplayString: Convert Unicode string to OEM.
Modified: trunk/reactos/ntoskrnl/inbv/inbv.c
_____
Modified: trunk/reactos/ntoskrnl/inbv/inbv.c
--- trunk/reactos/ntoskrnl/inbv/inbv.c 2005-02-01 16:38:02 UTC (rev
13379)
+++ trunk/reactos/ntoskrnl/inbv/inbv.c 2005-02-01 16:40:23 UTC (rev
13380)
@@ -59,6 +59,7 @@
return(STATUS_SUCCESS);
}
+
VOID
STDCALL
InbvAcquireDisplayOwnership(VOID)
@@ -81,6 +82,7 @@
return FALSE;
}
+
BOOLEAN
STDCALL
InbvResetDisplayParameters(ULONG SizeX, ULONG SizeY)
@@ -88,6 +90,7 @@
return(InbvResetDisplay());
}
+
VOID
STDCALL INIT_FUNCTION
InbvEnableBootDriver(IN BOOLEAN Enable)
@@ -148,6 +151,7 @@
}
}
+
BOOLEAN
STDCALL
InbvEnableDisplayString(IN BOOLEAN Enable)
@@ -221,13 +225,11 @@
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;
}
Show replies by date