mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[NTOSKRNL]
Properly compute file name length for output buffer CORE-2582 svn path=/trunk/; revision=62484
This commit is contained in:
parent
a0173baa19
commit
3d31a14caa
1 changed files with 1 additions and 1 deletions
|
@ -494,7 +494,7 @@ FsRtlNotifyUpdateBuffer(OUT PFILE_NOTIFY_INFORMATION OutputBuffer,
|
|||
{
|
||||
OutputBuffer->NextEntryOffset = 0;
|
||||
OutputBuffer->Action = Action;
|
||||
OutputBuffer->FileNameLength = DataLength - sizeof(FILE_NOTIFY_INFORMATION);
|
||||
OutputBuffer->FileNameLength = DataLength - FIELD_OFFSET(FILE_NOTIFY_INFORMATION, FileName);
|
||||
if (IsUnicode)
|
||||
{
|
||||
if (ParentName->Length)
|
||||
|
|
Loading…
Reference in a new issue