mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Return correct size. This fixes bug 756
svn path=/trunk/; revision=17718
This commit is contained in:
parent
179c1bfe6c
commit
3a0cf7d618
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue