diff --git a/rostests/winetests/ntdll/exception.c b/rostests/winetests/ntdll/exception.c index 1b2e2132b77..1c27b2a7a3c 100644 --- a/rostests/winetests/ntdll/exception.c +++ b/rostests/winetests/ntdll/exception.c @@ -1390,14 +1390,13 @@ static void test_virtual_unwind(void) START_TEST(exception) { + HMODULE hntdll = GetModuleHandleA("ntdll.dll"); if(!winetest_interactive) { skip("ReactOS Bug 6404: ntdll_winetest:exception enters kdbg on the int3 exception test.\n"); return; } - HMODULE hntdll = GetModuleHandleA("ntdll.dll"); - code_mem = VirtualAlloc(NULL, 65536, MEM_RESERVE | MEM_COMMIT, PAGE_EXECUTE_READWRITE); if(!code_mem) { trace("VirtualAlloc failed\n");