mirror of
https://github.com/reactos/reactos.git
synced 2025-07-23 22:43:51 +00:00
fixed signedness warning
svn path=/trunk/; revision=18010
This commit is contained in:
parent
5cf68f2c19
commit
4b69f7ad42
1 changed files with 3 additions and 3 deletions
|
@ -32,19 +32,19 @@ RtlAnsiCharToUnicodeChar(IN PUCHAR *AnsiChar)
|
|||
{
|
||||
ULONG Size;
|
||||
NTSTATUS Status;
|
||||
WCHAR UnicodeChar = 0x20;
|
||||
WCHAR UnicodeChar = L' ';
|
||||
|
||||
Size = (NlsLeadByteInfo[**AnsiChar] == 0) ? 1 : 2;
|
||||
|
||||
Status = RtlMultiByteToUnicodeN(&UnicodeChar,
|
||||
sizeof(WCHAR),
|
||||
NULL,
|
||||
*AnsiChar,
|
||||
(PCHAR)*AnsiChar,
|
||||
Size);
|
||||
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
UnicodeChar = 0x20;
|
||||
UnicodeChar = L' ';
|
||||
}
|
||||
|
||||
*AnsiChar += Size;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue