[ros-diffs] [weiden] 18010: fixed signedness warning
weiden at svn.reactos.com
weiden at svn.reactos.com
Fri Sep 23 13:12:32 CEST 2005
fixed signedness warning
Modified: trunk/reactos/lib/rtl/unicode.c
_____
Modified: trunk/reactos/lib/rtl/unicode.c
--- trunk/reactos/lib/rtl/unicode.c 2005-09-23 09:51:18 UTC (rev
18009)
+++ trunk/reactos/lib/rtl/unicode.c 2005-09-23 11:12:18 UTC (rev
18010)
@@ -32,19 +32,19 @@
{
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;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050923/2dbeefbe/attachment.html
More information about the Ros-diffs
mailing list