projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5cf68f2
)
fixed signedness warning
author
Thomas Bluemel
<thomas@reactsoft.com>
Fri, 23 Sep 2005 11:12:18 +0000
(11:12 +0000)
committer
Thomas 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
patch
|
blob
|
history
diff --git
a/reactos/lib/rtl/unicode.c
b/reactos/lib/rtl/unicode.c
index
ee64f36
..
217f695
100644
(file)
--- a/
reactos/lib/rtl/unicode.c
+++ b/
reactos/lib/rtl/unicode.c
@@
-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;