mirror of
https://github.com/winfsp/winfsp.git
synced 2025-06-08 04:52:10 -05:00
sys: FspVolumeNotifyWork: always acquire the rename lock shared
This commit is contained in:
parent
24e6f1a2f6
commit
57fce78ff3
@ -1227,6 +1227,8 @@ static VOID FspVolumeNotifyWork(PVOID NotifyWorkItem0)
|
|||||||
BOOLEAN Unlock = FALSE;
|
BOOLEAN Unlock = FALSE;
|
||||||
NTSTATUS Result;
|
NTSTATUS Result;
|
||||||
|
|
||||||
|
FspFsvolDeviceFileRenameAcquireShared(FsvolDeviceObject);
|
||||||
|
|
||||||
/* iterate over notify information and invalidate/notify each file */
|
/* iterate over notify information and invalidate/notify each file */
|
||||||
for (; (PUINT8)NotifyInfo + sizeof(NotifyInfo->Size) <= NotifyInfoEnd;
|
for (; (PUINT8)NotifyInfo + sizeof(NotifyInfo->Size) <= NotifyInfoEnd;
|
||||||
NotifyInfo = (PVOID)((PUINT8)NotifyInfo + FSP_FSCTL_DEFAULT_ALIGN_UP(NotifyInfoSize)))
|
NotifyInfo = (PVOID)((PUINT8)NotifyInfo + FSP_FSCTL_DEFAULT_ALIGN_UP(NotifyInfoSize)))
|
||||||
@ -1289,6 +1291,8 @@ static VOID FspVolumeNotifyWork(PVOID NotifyWorkItem0)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FspFsvolDeviceFileRenameRelease(FsvolDeviceObject);
|
||||||
|
|
||||||
if (0 != FullFileName.Buffer)
|
if (0 != FullFileName.Buffer)
|
||||||
FspFree(FullFileName.Buffer);
|
FspFree(FullFileName.Buffer);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user