use the captured link target string length in NtCreateSymbolicLinkObject. Spotted by zebasoftis.
Modified: trunk/reactos/ntoskrnl/ob/symlink.c

Modified: trunk/reactos/ntoskrnl/ob/symlink.c
--- trunk/reactos/ntoskrnl/ob/symlink.c	2005-12-17 20:59:44 UTC (rev 20230)
+++ trunk/reactos/ntoskrnl/ob/symlink.c	2005-12-17 20:59:51 UTC (rev 20231)
@@ -233,7 +233,7 @@
   {
     SymbolicLink->TargetName.Length = 0;
     SymbolicLink->TargetName.MaximumLength =
-      ((wcslen(LinkTarget->Buffer) + 1) * sizeof(WCHAR));
+      CapturedLinkTarget.Length + sizeof(WCHAR);
     SymbolicLink->TargetName.Buffer =
       ExAllocatePoolWithTag(NonPagedPool,
 			    SymbolicLink->TargetName.MaximumLength,