kernel32/tests: Remove unnecessary call to GetExitCodeProcess in process tests.

Sebastian Lackner sebastian at fds-team.de
Sun Dec 20 22:26:09 CST 2015


Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
---

The exit code is unused here. Most likely this function call
is a copy&paste mistake from other similar tests.

 dlls/kernel32/tests/process.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/dlls/kernel32/tests/process.c b/dlls/kernel32/tests/process.c
index 6dc1f5e..f186c94 100644
--- a/dlls/kernel32/tests/process.c
+++ b/dlls/kernel32/tests/process.c
@@ -2729,7 +2729,6 @@ static void test_StartupNoConsole(void)
     char                buffer[MAX_PATH];
     STARTUPINFOA        startup;
     PROCESS_INFORMATION info;
-    DWORD               code;
 
     if (!pNtCurrentTeb)
     {
@@ -2746,7 +2745,6 @@ static void test_StartupNoConsole(void)
     ok(CreateProcessA(NULL, buffer, NULL, NULL, TRUE, DETACHED_PROCESS, NULL, NULL, &startup,
                       &info), "CreateProcess\n");
     ok(WaitForSingleObject(info.hProcess, 30000) == WAIT_OBJECT_0, "Child process termination\n");
-    ok(GetExitCodeProcess(info.hProcess, &code), "Getting exit code\n");
     WritePrivateProfileStringA(NULL, NULL, NULL, resfile);
     okChildInt("StartupInfoA", "hStdInput", (UINT)INVALID_HANDLE_VALUE);
     okChildInt("StartupInfoA", "hStdOutput", (UINT)INVALID_HANDLE_VALUE);
-- 
2.6.4



More information about the wine-patches mailing list