small bugfix
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Sat, 4 Aug 2007 16:51:10 +0000 (16:51 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Sat, 4 Aug 2007 16:51:10 +0000 (16:51 +0000)
svn path=/trunk/; revision=28161

rostests/apitests/apitest.c
rostests/apitests/w32knapi/w32knapi.c

index 33129a8..bb53ae2 100644 (file)
@@ -156,14 +156,14 @@ TestMain(LPWSTR pszName, LPWSTR pszModule)
                printf(" regressions: %d\n", orfailed);\r
        }\r
 \r
-       if (ti.bRegress)\r
-               return ti.rfailed;\r
-\r
        if (bStatus)\r
        {\r
                write(hFile, szFileFooter, strlen(szFileFooter));\r
                close(hFile);\r
        }\r
 \r
+       if (ti.bRegress)\r
+               return ti.rfailed;\r
+\r
        return ti.failed;\r
 }\r
index 685b464..da618cc 100644 (file)
@@ -142,6 +142,7 @@ WinMain(HINSTANCE hInstance,
         int       nCmdShow)\r
 {\r
        g_hInstance = hInstance;\r
+       \r
 \r
        printf("Win32k native API test\n");\r
 \r
@@ -155,7 +156,5 @@ WinMain(HINSTANCE hInstance,
 \r
        printf("\n");\r
 \r
-       TestMain(L"w32knapi", L"win32k.sys Nt-Api");\r
-\r
-       return 0;\r
+       return TestMain(L"w32knapi", L"win32k.sys Nt-Api");\r
 }\r