[CMD][SERVMAN][SHELL32][WINSPOOL][ROSAPPS][NTOS:PNP] Fix my build.
[reactos.git] / modules / rostests / apitests / shlwapi / SHLoadIndirectString.c
index f086a7e..0eac5b0 100644 (file)
@@ -16,6 +16,7 @@ static void execute_test(LPCWSTR DllFile)
     HRESULT hr;
     HANDLE hEvent;
     DWORD dwRet;
+    HMODULE mod;
 
     hEvent = CreateEventA(NULL, TRUE, FALSE, "Local\\shlwapi_apitest_evt");
 
@@ -24,7 +25,7 @@ static void execute_test(LPCWSTR DllFile)
     ok_hex(dwRet, WAIT_TIMEOUT);
 
     // Ensure the module is not loaded yet...
-    HMODULE mod = GetModuleHandleW(DllFile);
+    mod = GetModuleHandleW(DllFile);
     if (mod != NULL)
     {
         CloseHandle(hEvent);