kernel32/tests: Fix a race that could corrupt the thread register state.

oldstable
Alexandre Julliard 2011-05-06 17:12:22 +02:00
parent 740e7be128
commit f555c2d857
1 changed files with 2 additions and 1 deletions

View File

@ -898,6 +898,7 @@ static HANDLE event;
static void WINAPI set_test_val( int val )
{
test_value += val;
ExitThread(0);
}
static DWORD WINAPI threadFunc6(LPVOID p)
@ -954,7 +955,7 @@ static void test_SetThreadContext(void)
prevcount, GetLastError() );
WaitForSingleObject( thread, INFINITE );
ok( test_value == 20, "test_value %d instead of 20\n", test_value );
ok( test_value == 10, "test_value %d instead of 20\n", test_value );
ctx.ContextFlags = CONTEXT_FULL;
SetLastError(0xdeadbeef);