[1/7] include: Define MUTEX_ALL_ACCESS in a PSDK compatible way.

Dmitry Timoshkov dmitry at baikal.ru
Wed Apr 18 02:29:16 CDT 2012


---
 include/winnt.h |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/include/winnt.h b/include/winnt.h
index a6b0cf2..29f0b76 100644
--- a/include/winnt.h
+++ b/include/winnt.h
@@ -4247,8 +4247,11 @@ typedef enum tagSID_NAME_USE {
 #define SEMAPHORE_MODIFY_STATE     0x0002
 #define SEMAPHORE_ALL_ACCESS       (STANDARD_RIGHTS_REQUIRED|SYNCHRONIZE|0x3)
 
-#define MUTEX_MODIFY_STATE         0x0001
-#define MUTEX_ALL_ACCESS           (STANDARD_RIGHTS_REQUIRED|SYNCHRONIZE|0x1)
+#define MUTANT_QUERY_STATE         0x0001
+#define MUTANT_ALL_ACCESS          (STANDARD_RIGHTS_REQUIRED|SYNCHRONIZE|MUTANT_QUERY_STATE)
+
+#define MUTEX_MODIFY_STATE MUTANT_QUERY_STATE /* Microsoft defines it this way */
+#define MUTEX_ALL_ACCESS MUTANT_ALL_ACCESS
 
 #define JOB_OBJECT_ASSIGN_PROCESS           0x0001
 #define JOB_OBJECT_SET_ATTRIBUTES           0x0002
-- 
1.7.9.4




More information about the wine-patches mailing list