[NTDLL_WINETEST]
authorThomas Faber <thomas.faber@reactos.org>
Tue, 9 Aug 2011 22:37:53 +0000 (22:37 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Tue, 9 Aug 2011 22:37:53 +0000 (22:37 +0000)
- Fix MSVC build

svn path=/trunk/; revision=53157

rostests/winetests/ntdll/exception.c

index 1b2e213..1c27b2a 100644 (file)
@@ -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");