mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 01:24:38 +00:00
NtDisplayString: Convert Unicode string to OEM.
svn path=/trunk/; revision=13380
This commit is contained in:
parent
abd3d65035
commit
abbcb5b10f
1 changed files with 9 additions and 7 deletions
|
@ -59,6 +59,7 @@ InbvCheckBootVid(VOID)
|
||||||
return(STATUS_SUCCESS);
|
return(STATUS_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
STDCALL
|
STDCALL
|
||||||
InbvAcquireDisplayOwnership(VOID)
|
InbvAcquireDisplayOwnership(VOID)
|
||||||
|
@ -81,6 +82,7 @@ InbvDisplayString(IN PCHAR String)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
STDCALL
|
STDCALL
|
||||||
InbvResetDisplayParameters(ULONG SizeX, ULONG SizeY)
|
InbvResetDisplayParameters(ULONG SizeX, ULONG SizeY)
|
||||||
|
@ -88,6 +90,7 @@ InbvResetDisplayParameters(ULONG SizeX, ULONG SizeY)
|
||||||
return(InbvResetDisplay());
|
return(InbvResetDisplay());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
STDCALL INIT_FUNCTION
|
STDCALL INIT_FUNCTION
|
||||||
InbvEnableBootDriver(IN BOOLEAN Enable)
|
InbvEnableBootDriver(IN BOOLEAN Enable)
|
||||||
|
@ -148,6 +151,7 @@ InbvEnableBootDriver(IN BOOLEAN Enable)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
STDCALL
|
STDCALL
|
||||||
InbvEnableDisplayString(IN BOOLEAN Enable)
|
InbvEnableDisplayString(IN BOOLEAN Enable)
|
||||||
|
@ -221,13 +225,11 @@ NTSTATUS
|
||||||
STDCALL
|
STDCALL
|
||||||
NtDisplayString(IN PUNICODE_STRING DisplayString)
|
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);
|
return STATUS_SUCCESS;
|
||||||
|
|
||||||
RtlFreeAnsiString (&AnsiString);
|
|
||||||
|
|
||||||
return(STATUS_SUCCESS);
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue