Sync to trunk (r44789)
[reactos.git] / rostests / winetests / shell32 / shlexec.c
index c673f0a..fd71252 100755 (executable)
@@ -127,7 +127,7 @@ static int shell_execute(LPCSTR operation, LPCSTR file, LPCSTR parameters, LPCST
                 win_skip("Skipping shellexecute of file with unassociated extension\n");
                 skip_noassoc_tests = TRUE;
                 rc = SE_ERR_NOASSOC;
-            }
+    }
         }
         ok(wait_rc==WAIT_OBJECT_0 || rc <= 32, "WaitForSingleObject returned %d\n", wait_rc);
     }
@@ -1237,7 +1237,7 @@ static void test_lnks(void)
             {
                 okChildInt("argcA", 5);
             }
-            else
+            else 
             {
                 okChildInt("argcA", 5);
             }
@@ -1281,15 +1281,15 @@ static void test_exes(void)
 
     if (! skip_noassoc_tests)
     {
-        sprintf(filename, "%s\\test file.noassoc", tmpdir);
-        if (CopyFile(argv0, filename, FALSE))
-        {
-            rc=shell_execute(NULL, filename, params, NULL);
-            todo_wine {
-                ok(rc==SE_ERR_NOASSOC, "%s succeeded: rc=%d\n", shell_call, rc);
-            }
+    sprintf(filename, "%s\\test file.noassoc", tmpdir);
+    if (CopyFile(argv0, filename, FALSE))
+    {
+        rc=shell_execute(NULL, filename, params, NULL);
+        todo_wine {
+        ok(rc==SE_ERR_NOASSOC, "%s succeeded: rc=%d\n", shell_call, rc);
         }
     }
+}
     else
     {
         win_skip("Skipping shellexecute of file with unassociated extension\n");
@@ -1319,15 +1319,15 @@ static void test_exes_long(void)
 
     if (! skip_noassoc_tests)
     {
-        sprintf(filename, "%s\\test file.noassoc", tmpdir);
-        if (CopyFile(argv0, filename, FALSE))
-        {
-            rc=shell_execute(NULL, filename, params, NULL);
-            todo_wine {
-                ok(rc==SE_ERR_NOASSOC, "%s succeeded: rc=%d\n", shell_call, rc);
-            }
+    sprintf(filename, "%s\\test file.noassoc", tmpdir);
+    if (CopyFile(argv0, filename, FALSE))
+    {
+        rc=shell_execute(NULL, filename, params, NULL);
+        todo_wine {
+        ok(rc==SE_ERR_NOASSOC, "%s succeeded: rc=%d\n", shell_call, rc);
         }
     }
+}
     else
     {
         win_skip("Skipping shellexecute of file with unassociated extension\n");
@@ -1415,7 +1415,7 @@ static void hook_WaitForInputIdle(void *new_func)
         import_module_name = base + import_descriptor->Name;
         if (lstrcmpiA(import_module_name, "user32.dll") == 0 ||
             lstrcmpiA(import_module_name, "user32") == 0)
-        {
+            {
             PIMAGE_THUNK_DATA int_entry;
             PIMAGE_THUNK_DATA iat_entry;
 
@@ -1426,7 +1426,7 @@ static void hook_WaitForInputIdle(void *new_func)
             int_entry = (PIMAGE_THUNK_DATA)(base + U(*import_descriptor).OriginalFirstThunk);
             iat_entry = (PIMAGE_THUNK_DATA)(base + import_descriptor->FirstThunk);
             while (int_entry->u1.Ordinal != 0)
-            {
+                {
                 if (! IMAGE_SNAP_BY_ORDINAL(int_entry->u1.Ordinal))
                 {
                     PIMAGE_IMPORT_BY_NAME import_by_name;
@@ -1439,16 +1439,16 @@ static void hook_WaitForInputIdle(void *new_func)
                         iat_entry->u1.Function = (ULONG_PTR) new_func;
                         VirtualProtect(&iat_entry->u1.Function, sizeof(ULONG_PTR), old_prot, &old_prot);
                         break;
-                    }
                 }
+            }
                 int_entry++;
                 iat_entry++;
-            }
+    }
             break;
-        }
+}
 
         import_descriptor++;
-    }
+}
 }
 
 static void test_dde(void)