sync rostests to r44455
[reactos.git] / rostests / winetests / kernel32 / resource.c
index 7410675..219be58 100644 (file)
@@ -127,16 +127,16 @@ static void update_empty_exe( void )
     res = BeginUpdateResource( filename, TRUE );
     if ( res != NULL || GetLastError() != ERROR_FILE_INVALID )
     {
-        ok( res != NULL, "BeginUpdateResource failed\n");
+    ok( res != NULL, "BeginUpdateResource failed\n");
 
-        /* check if it's possible to open the file now */
-        test = CreateFile(filename, GENERIC_READ, 0, NULL, OPEN_EXISTING, 0, 0);
-        ok (test != INVALID_HANDLE_VALUE, "failed to create file\n");
+    /* check if it's possible to open the file now */
+    test = CreateFile(filename, GENERIC_READ, 0, NULL, OPEN_EXISTING, 0, 0);
+    ok (test != INVALID_HANDLE_VALUE, "failed to create file\n");
 
-        CloseHandle( test );
+    CloseHandle( test );
 
-        r = EndUpdateResource( res, FALSE );
-        ok( r == FALSE, "EndUpdateResource failed\n");
+    r = EndUpdateResource( res, FALSE );
+    ok( r == FALSE, "EndUpdateResource failed\n");
     }
     else
         skip( "Can't update resource in empty file\n" );
@@ -180,12 +180,12 @@ static void update_resources_version(void)
 
     if (0)  /* this causes subsequent tests to fail on Vista */
     {
-        r = UpdateResource( res,
-                            MAKEINTRESOURCE(0x1230),
-                            MAKEINTRESOURCE(0x4567),
-                            0xabcd,
-                            NULL, 0 );
-        ok( r == FALSE, "UpdateResource failed\n");
+    r = UpdateResource( res,
+                        MAKEINTRESOURCE(0x1230),
+                        MAKEINTRESOURCE(0x4567),
+                        0xabcd,
+                        NULL, 0 );
+    ok( r == FALSE, "UpdateResource failed\n");
     }
 
     r = UpdateResource( res,