Commit 1be185f7 authored by Detlef Riekenberg's avatar Detlef Riekenberg Committed by Alexandre Julliard

ntdll/tests: Skip tests if NtCurrentTeb doesn't exist.

parent 73096db5
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#include <assert.h>
#include <stdarg.h> #include <stdarg.h>
#ifndef _WIN32_WINNT #ifndef _WIN32_WINNT
...@@ -202,7 +201,11 @@ static void test_prot_fault(void) ...@@ -202,7 +201,11 @@ static void test_prot_fault(void)
} exc_frame; } exc_frame;
pNtCurrentTeb = (void *)GetProcAddress( GetModuleHandleA("ntdll.dll"), "NtCurrentTeb" ); pNtCurrentTeb = (void *)GetProcAddress( GetModuleHandleA("ntdll.dll"), "NtCurrentTeb" );
assert( pNtCurrentTeb ); if (!pNtCurrentTeb)
{
trace( "NtCurrentTeb not found, skipping tests\n" );
return;
}
exc_frame.frame.Handler = handler; exc_frame.frame.Handler = handler;
exc_frame.frame.Prev = pNtCurrentTeb()->Tib.ExceptionList; exc_frame.frame.Prev = pNtCurrentTeb()->Tib.ExceptionList;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment