diff --git a/rostests/apitests/apitest.c b/rostests/apitests/apitest.c index 33129a8aac1..bb53ae2b54d 100644 --- a/rostests/apitests/apitest.c +++ b/rostests/apitests/apitest.c @@ -156,14 +156,14 @@ TestMain(LPWSTR pszName, LPWSTR pszModule) printf(" regressions: %d\n", orfailed); } - if (ti.bRegress) - return ti.rfailed; - if (bStatus) { write(hFile, szFileFooter, strlen(szFileFooter)); close(hFile); } + if (ti.bRegress) + return ti.rfailed; + return ti.failed; } diff --git a/rostests/apitests/w32knapi/w32knapi.c b/rostests/apitests/w32knapi/w32knapi.c index 685b4647045..da618cc0ddd 100644 --- a/rostests/apitests/w32knapi/w32knapi.c +++ b/rostests/apitests/w32knapi/w32knapi.c @@ -142,6 +142,7 @@ WinMain(HINSTANCE hInstance, int nCmdShow) { g_hInstance = hInstance; + printf("Win32k native API test\n"); @@ -155,7 +156,5 @@ WinMain(HINSTANCE hInstance, printf("\n"); - TestMain(L"w32knapi", L"win32k.sys Nt-Api"); - - return 0; + return TestMain(L"w32knapi", L"win32k.sys Nt-Api"); }