mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
- Fix a buffer overrun
svn path=/trunk/; revision=41517
This commit is contained in:
parent
fda2c1efd7
commit
46ec0bb579
1 changed files with 2 additions and 2 deletions
|
@ -775,9 +775,9 @@ KsCreate(
|
|||
if (IoStack->FileObject->FileName.Buffer[0] != L'{')
|
||||
{
|
||||
RtlMoveMemory(IoStack->FileObject->FileName.Buffer, &IoStack->FileObject->FileName.Buffer[Length+1],
|
||||
IoStack->FileObject->FileName.Length - Length * sizeof(WCHAR));
|
||||
IoStack->FileObject->FileName.Length - (Length + 1) * sizeof(WCHAR));
|
||||
|
||||
IoStack->FileObject->FileName.Length -= Length * sizeof(WCHAR);
|
||||
IoStack->FileObject->FileName.Length -= (Length + 1)* sizeof(WCHAR);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue