From: Pierre Schweitzer Date: Wed, 12 Mar 2014 19:54:08 +0000 (+0000) Subject: [NTOSKRNL] X-Git-Tag: backups/0.3.17@66124~1962 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=3d31a14caae105051a26522636bfadceb60b7589 [NTOSKRNL] Properly compute file name length for output buffer CORE-2582 svn path=/trunk/; revision=62484 --- diff --git a/reactos/ntoskrnl/fsrtl/notify.c b/reactos/ntoskrnl/fsrtl/notify.c index 1018edfdaef..9c2a420abae 100644 --- 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)