Alexandre Julliard : kernel32/tests: Fix the ResumeThread on win9x.
Alexandre Julliard
julliard at winehq.org
Thu Sep 11 08:01:10 CDT 2008
Module: wine
Branch: master
Commit: c9f84aa9f925ca6ac6c5ef809b6370c8942f1280
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c9f84aa9f925ca6ac6c5ef809b6370c8942f1280
Author: Alexandre Julliard <julliard at winehq.org>
Date: Thu Sep 11 14:10:35 2008 +0200
kernel32/tests: Fix the ResumeThread on win9x.
---
dlls/kernel32/tests/thread.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/kernel32/tests/thread.c b/dlls/kernel32/tests/thread.c
index 697f34b..ff9dad2 100644
--- a/dlls/kernel32/tests/thread.c
+++ b/dlls/kernel32/tests/thread.c
@@ -478,7 +478,9 @@ static VOID test_CreateThread_suspended(void)
ok(suspend_count == -1, "SuspendThread returned %d, expected -1\n", suspend_count);
suspend_count = ResumeThread(thread);
- ok(suspend_count == 0, "ResumeThread returned %d, expected 0\n", suspend_count);
+ ok(suspend_count == 0 ||
+ broken(suspend_count == -1), /* win9x */
+ "ResumeThread returned %d, expected 0\n", suspend_count);
ok(CloseHandle(thread)!=0,"CloseHandle failed\n");
}
More information about the wine-cvs
mailing list