Author: pschweitzer Date: Wed Mar 12 19:54:08 2014 New Revision: 62484
URL: http://svn.reactos.org/svn/reactos?rev=62484&view=rev Log: [NTOSKRNL] Properly compute file name length for output buffer CORE-2582
Modified: trunk/reactos/ntoskrnl/fsrtl/notify.c
Modified: trunk/reactos/ntoskrnl/fsrtl/notify.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/fsrtl/notify.c?rev... ============================================================================== --- trunk/reactos/ntoskrnl/fsrtl/notify.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/fsrtl/notify.c [iso-8859-1] Wed Mar 12 19:54:08 2014 @@ -494,7 +494,7 @@ { 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)