diff --git a/patches/ntdll-FileDispositionInformation/0002-server-Do-not-allow-to-set-disposition-on-file-which.patch b/patches/ntdll-FileDispositionInformation/0002-server-Do-not-allow-to-set-disposition-on-file-which.patch index 98d9c19a..d0f2cd17 100644 --- a/patches/ntdll-FileDispositionInformation/0002-server-Do-not-allow-to-set-disposition-on-file-which.patch +++ b/patches/ntdll-FileDispositionInformation/0002-server-Do-not-allow-to-set-disposition-on-file-which.patch @@ -49,7 +49,7 @@ index 5130b44..04891e7 100644 + LIST_FOR_EACH( ptr, &fd->inode->open ) + { + struct fd *fd_ptr = LIST_ENTRY( ptr, struct fd, inode_entry ); -+ if (fd_ptr != fd && fd_ptr->access & FILE_MAPPING_ACCESS) ++ if (fd_ptr != fd && (fd_ptr->access & FILE_MAPPING_ACCESS)) + { + set_error( STATUS_CANNOT_DELETE ); + return;