mirror of
https://github.com/reactos/reactos.git
synced 2025-05-04 18:31:40 +00:00
[NTOS:OB]
- Use SEH to access the link target buffer in NtQuerySymbolicLinkObject CORE-11509 svn path=/trunk/; revision=71769
This commit is contained in:
parent
1feab2643f
commit
869afd1010
1 changed files with 12 additions and 3 deletions
|
@ -603,9 +603,18 @@ NtCreateSymbolicLinkObject(OUT PHANDLE LinkHandle,
|
|||
}
|
||||
|
||||
/* Copy it */
|
||||
RtlCopyMemory(SymbolicLink->LinkTarget.Buffer,
|
||||
CapturedLinkTarget.Buffer,
|
||||
CapturedLinkTarget.MaximumLength);
|
||||
_SEH2_TRY
|
||||
{
|
||||
RtlCopyMemory(SymbolicLink->LinkTarget.Buffer,
|
||||
CapturedLinkTarget.Buffer,
|
||||
CapturedLinkTarget.MaximumLength);
|
||||
}
|
||||
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
||||
{
|
||||
ObDereferenceObject(SymbolicLink);
|
||||
_SEH2_YIELD(return _SEH2_GetExceptionCode());
|
||||
}
|
||||
_SEH2_END;
|
||||
|
||||
/* Initialize the remaining name, dos drive index and target object */
|
||||
SymbolicLink->LinkTargetObject = NULL;
|
||||
|
|
Loading…
Reference in a new issue