[ros-diffs] [weiden] 20231: use the captured link target string
length in NtCreateSymbolicLinkObject. Spotted by zebasoftis.
weiden at svn.reactos.com
weiden at svn.reactos.com
Sat Dec 17 21:59:54 CET 2005
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,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20051217/d09c6185/attachment.html
More information about the Ros-diffs
mailing list