Author: tfaber
Date: Sun Jul 3 08:54:20 2016
New Revision: 71771
URL:
http://svn.reactos.org/svn/reactos?rev=71771&view=rev
Log:
[NTOS:OB]
- Use the correct buffer size for the link target in NtCreateSymbolicLinkObject
CORE-11509
Modified:
trunk/reactos/ntoskrnl/ob/oblink.c
Modified: trunk/reactos/ntoskrnl/ob/oblink.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ob/oblink.c?rev=7…
==============================================================================
--- trunk/reactos/ntoskrnl/ob/oblink.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ob/oblink.c [iso-8859-1] Sun Jul 3 08:54:20 2016
@@ -589,8 +589,7 @@
/* Setup the target name */
SymbolicLink->LinkTarget.Length = CapturedLinkTarget.Length;
- SymbolicLink->LinkTarget.MaximumLength = CapturedLinkTarget.Length +
- sizeof(WCHAR);
+ SymbolicLink->LinkTarget.MaximumLength = CapturedLinkTarget.MaximumLength;
SymbolicLink->LinkTarget.Buffer =
ExAllocatePoolWithTag(PagedPool,
CapturedLinkTarget.MaximumLength,