mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-22 08:23:05 -05:00
Fix an alignment problem in the FspFileSystemNotify interop that would leave a buffer size not aligned to a multiple of 8, and make notify calls fail.
This commit is contained in:
parent
b05d5e286e
commit
6421dd92a9
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user