From f1045ce6bbce5efaae191af22c728c0e2acfb096 Mon Sep 17 00:00:00 2001 From: Sebastian Lackner Date: Sat, 22 Aug 2015 05:14:36 +0200 Subject: [PATCH] ntdll-FileDispositionInformation: Add braces around argument. --- ...2-server-Do-not-allow-to-set-disposition-on-file-which.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;