Return correct size. This fixes bug 756

svn path=/trunk/; revision=17718
This commit is contained in:
Alex Ionescu 2005-09-07 16:02:32 +00:00
parent 179c1bfe6c
commit 3a0cf7d618

View file

@ -1748,7 +1748,7 @@ RtlUpcaseUnicodeStringToOemString (
NTSTATUS Status; NTSTATUS Status;
ULONG Length; /* including nullterm */ ULONG Length; /* including nullterm */
Length = RtlUnicodeStringToAnsiSize(UniSource); Length = RtlUnicodeStringToOemSize(UniSource);
if (Length > 0x0000FFFF) if (Length > 0x0000FFFF)
return STATUS_INVALID_PARAMETER_2; return STATUS_INVALID_PARAMETER_2;