File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -182,12 +182,13 @@ FsRtlNotifyCleanup(IN PNOTIFY_SYNC NotifySync,
182
182
{
183
183
FsRtlNotifyCompleteIrpList (NotifyChange , STATUS_NOTIFY_CLEANUP );
184
184
}
185
- /* Remove from the list */
186
- RemoveEntryList (& NotifyChange -> NotifyList );
187
185
188
- /* Downcrease reference number and if 0 is reached, it's time to do complete cleanup */
186
+ /* Decrease reference number and if 0 is reached, it's time to do complete cleanup */
189
187
if (!InterlockedDecrement ((PLONG )& (NotifyChange -> ReferenceCount )))
190
188
{
189
+ /* Remove it from the notifications list */
190
+ RemoveEntryList (& NotifyChange -> NotifyList );
191
+
191
192
/* In case there was an allocated buffer, free it */
192
193
if (NotifyChange -> AllocatedBuffer )
193
194
{
You can’t perform that action at this time.
0 commit comments