fixed signedness warning
authorThomas Bluemel <thomas@reactsoft.com>
Fri, 23 Sep 2005 11:12:18 +0000 (11:12 +0000)
committerThomas Bluemel <thomas@reactsoft.com>
Fri, 23 Sep 2005 11:12:18 +0000 (11:12 +0000)
svn path=/trunk/; revision=18010

reactos/lib/rtl/unicode.c

index ee64f36..217f695 100644 (file)
@@ -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;