mirror of
https://github.com/reactos/reactos.git
synced 2025-07-25 07:14:03 +00:00
[CMAKE]
- Sync with trunk r51050. svn path=/branches/cmake-bringup/; revision=51154
This commit is contained in:
commit
785bea480a
469 changed files with 16304 additions and 9647 deletions
|
@ -33,13 +33,23 @@ extern USHORT NlsUnicodeDefaultChar;
|
|||
*/
|
||||
WCHAR
|
||||
NTAPI
|
||||
RtlAnsiCharToUnicodeChar(IN PUCHAR *AnsiChar)
|
||||
RtlAnsiCharToUnicodeChar(IN OUT PUCHAR *AnsiChar)
|
||||
{
|
||||
ULONG Size;
|
||||
NTSTATUS Status;
|
||||
WCHAR UnicodeChar = L' ';
|
||||
|
||||
Size = (NlsLeadByteInfo[**AnsiChar] == 0) ? 1 : 2;
|
||||
PAGED_CODE_RTL();
|
||||
|
||||
if (NlsLeadByteInfo)
|
||||
{
|
||||
Size = (NlsLeadByteInfo[**AnsiChar] == 0) ? 1 : 2;
|
||||
}
|
||||
else
|
||||
{
|
||||
DPRINT("HACK::Shouldn't have happened! Consider fixing Usetup and registry entries it creates on install\n");
|
||||
Size = 1;
|
||||
}
|
||||
|
||||
Status = RtlMultiByteToUnicodeN(&UnicodeChar,
|
||||
sizeof(WCHAR),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue