Return correct size. This fixes bug 756
Modified: trunk/reactos/lib/rtl/unicode.c
_____
Modified: trunk/reactos/lib/rtl/unicode.c
--- trunk/reactos/lib/rtl/unicode.c 2005-09-07 15:57:31 UTC (rev
17717)
+++ trunk/reactos/lib/rtl/unicode.c 2005-09-07 16:02:32 UTC (rev
17718)
@@ -1748,7 +1748,7 @@
NTSTATUS Status;
ULONG Length; /* including nullterm */
- Length = RtlUnicodeStringToAnsiSize(UniSource);
+ Length = RtlUnicodeStringToOemSize(UniSource);
if (Length > 0x0000FFFF)
return STATUS_INVALID_PARAMETER_2;