Merge pull request #336 from alonsohki/fix-notify-interop-alignment

Fix an alignment problem in the FspFileSystemNotify interop
This commit is contained in:
Bill Zissimopoulos 2020-12-18 15:45:48 -08:00 committed by GitHub
commit 7ed9c56005
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1188,10 +1188,11 @@ namespace Fsp.Interop
int Length = 0;
for (int I = 0; NotifyInfoArray.Length > I; I++)
{
Length = (Length + 7) & ~7; // align to next qword boundary
Length += NotifyInfoInternal.FileNameBufOffset +
NotifyInfoArray[I].FileName.Length * 2;
Length = (Length + 7) & ~7; // align to next qword boundary
}
Byte[] Buffer = new Byte[Length];
UInt32 BytesTransferred = default(UInt32);
fixed (Byte *P = Buffer)