Dmitry Timoshkov : kernel32/tests: Use PROCESS_ALL_ACCESS definition compatible with versions of Windows before Vista.
Alexandre Julliard
julliard at winehq.org
Fri Feb 7 10:13:44 CST 2014
Module: wine
Branch: master
Commit: 448d7770dc690a4e7fa1ebdbcb72913f69412f13
URL: http://source.winehq.org/git/wine.git/?a=commit;h=448d7770dc690a4e7fa1ebdbcb72913f69412f13
Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date: Fri Feb 7 23:08:48 2014 +0900
kernel32/tests: Use PROCESS_ALL_ACCESS definition compatible with versions of Windows before Vista.
---
dlls/kernel32/tests/process.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/dlls/kernel32/tests/process.c b/dlls/kernel32/tests/process.c
index 8658ac4..218a0d3 100644
--- a/dlls/kernel32/tests/process.c
+++ b/dlls/kernel32/tests/process.c
@@ -35,6 +35,9 @@
#include "wine/test.h"
+/* PROCESS_ALL_ACCESS in Vista+ PSDKs is incompatible with older Windows versions */
+#define PROCESS_ALL_ACCESS_NT4 (PROCESS_ALL_ACCESS & ~0xf000)
+
#define expect_eq_d(expected, actual) \
do { \
int value = (actual); \
@@ -1522,7 +1525,7 @@ static void test_OpenProcess(void)
}
/* without PROCESS_VM_OPERATION */
- hproc = OpenProcess(PROCESS_ALL_ACCESS & ~PROCESS_VM_OPERATION, FALSE, GetCurrentProcessId());
+ hproc = OpenProcess(PROCESS_ALL_ACCESS_NT4 & ~PROCESS_VM_OPERATION, FALSE, GetCurrentProcessId());
ok(hproc != NULL, "OpenProcess error %d\n", GetLastError());
SetLastError(0xdeadbeef);
More information about the wine-cvs
mailing list