projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0173ba
)
[NTOSKRNL]
author
Pierre Schweitzer
<pierre@reactos.org>
Wed, 12 Mar 2014 19:54:08 +0000
(19:54 +0000)
committer
Pierre Schweitzer
<pierre@reactos.org>
Wed, 12 Mar 2014 19:54:08 +0000
(19:54 +0000)
Properly compute file name length for output buffer
CORE-2582
svn path=/trunk/; revision=62484
reactos/ntoskrnl/fsrtl/notify.c
patch
|
blob
|
history
diff --git
a/reactos/ntoskrnl/fsrtl/notify.c
b/reactos/ntoskrnl/fsrtl/notify.c
index
1018edf
..
9c2a420
100644
(file)
--- a/
reactos/ntoskrnl/fsrtl/notify.c
+++ b/
reactos/ntoskrnl/fsrtl/notify.c
@@
-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)