From 7aa2e18c29f26374e98045aefee44eeab3755f1e Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Sat, 12 Nov 2005 19:11:05 +0000 Subject: [PATCH] Add some extra error information. --- dlls/kernel/tests/thread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/kernel/tests/thread.c b/dlls/kernel/tests/thread.c index 5216962304e..fbf8138df98 100644 --- a/dlls/kernel/tests/thread.c +++ b/dlls/kernel/tests/thread.c @@ -629,14 +629,14 @@ static void test_SetThreadContext(void) HANDLE thread = CreateThread( NULL, 0, threadFunc6, (void *)2, CREATE_SUSPENDED, NULL ); ctx.ContextFlags = CONTEXT_FULL; - ok( GetThreadContext( thread, &ctx ), "GetThreadContext failed\n" ); + ok( GetThreadContext( thread, &ctx ), "GetThreadContext failed : (%ld)\n", GetLastError() ); /* simulate a call to set_test_val(10) */ stack = (int *)ctx.Esp; stack[-1] = 10; stack[-2] = ctx.Eip; ctx.Esp -= 2 * sizeof(int *); ctx.Eip = (DWORD)set_test_val; - ok( SetThreadContext( thread, &ctx ), "SetThreadContext failed\n" ); + ok( SetThreadContext( thread, &ctx ), "SetThreadContext failed : (%ld)\n", GetLastError() ); ResumeThread( thread ); WaitForSingleObject( thread, INFINITE ); ok( test_value == 20, "test_value %d instead of 20\n", test_value );