Paul Vriens : kernel32/tests: Run tests on NT4 again.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Jan 2 06:45:50 CST 2007


Module: wine
Branch: master
Commit: bafefecaa21725c59fdd5d744c27eafc8c24ac60
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=bafefecaa21725c59fdd5d744c27eafc8c24ac60

Author: Paul Vriens <paul.vriens.wine at gmail.com>
Date:   Sat Dec 30 20:19:24 2006 +0100

kernel32/tests: Run tests on NT4 again.

---

 dlls/kernel32/tests/thread.c |   18 ++++++++++--------
 1 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/dlls/kernel32/tests/thread.c b/dlls/kernel32/tests/thread.c
index 42e649b..9e873c4 100644
--- a/dlls/kernel32/tests/thread.c
+++ b/dlls/kernel32/tests/thread.c
@@ -472,15 +472,17 @@ static VOID test_thread_priority(void)
    todo_wine
      ok(rc!=0,"error=%d\n",GetLastError());
 
+   if (pOpenThread) {
 /* check that access control is obeyed */
-   access_thread=pOpenThread(THREAD_ALL_ACCESS &
-                     (~THREAD_QUERY_INFORMATION) & (~THREAD_SET_INFORMATION),
-                     0,curthreadId);
-   ok(access_thread!=NULL,"OpenThread returned an invalid handle\n");
-   if (access_thread!=NULL) {
-     obey_ar(pSetThreadPriorityBoost(access_thread,1)==0);
-     obey_ar(pGetThreadPriorityBoost(access_thread,&disabled)==0);
-     ok(CloseHandle(access_thread),"Error Closing thread handle\n");
+     access_thread=pOpenThread(THREAD_ALL_ACCESS &
+                       (~THREAD_QUERY_INFORMATION) & (~THREAD_SET_INFORMATION),
+                       0,curthreadId);
+     ok(access_thread!=NULL,"OpenThread returned an invalid handle\n");
+     if (access_thread!=NULL) {
+       obey_ar(pSetThreadPriorityBoost(access_thread,1)==0);
+       obey_ar(pGetThreadPriorityBoost(access_thread,&disabled)==0);
+       ok(CloseHandle(access_thread),"Error Closing thread handle\n");
+     }
    }
 
    todo_wine {




More information about the wine-cvs mailing list