From 3a0cf7d6187babc777feaa6622293361054d72b5 Mon Sep 17 00:00:00 2001 From: Alex Ionescu Date: Wed, 7 Sep 2005 16:02:32 +0000 Subject: [PATCH] Return correct size. This fixes bug 756 svn path=/trunk/; revision=17718 --- reactos/lib/rtl/unicode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/lib/rtl/unicode.c b/reactos/lib/rtl/unicode.c index 3eec7dae791..0acf7bc690a 100644 --- a/reactos/lib/rtl/unicode.c +++ b/reactos/lib/rtl/unicode.c @@ -1748,7 +1748,7 @@ RtlUpcaseUnicodeStringToOemString ( NTSTATUS Status; ULONG Length; /* including nullterm */ - Length = RtlUnicodeStringToAnsiSize(UniSource); + Length = RtlUnicodeStringToOemSize(UniSource); if (Length > 0x0000FFFF) return STATUS_INVALID_PARAMETER_2;