diff --git a/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c b/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c index 7c56f2fb55d..0d642e885b0 100644 --- a/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c +++ b/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c @@ -539,7 +539,7 @@ JNIEXPORT jint JNICALL Java_org_eclipse_cdt_utils_spawner_Spawner_waitFor if (what == WAIT_OBJECT_0) { - GetExitCodeProcess((void *)(pCurProcInfo -> pid), &exit_code); + GetExitCodeProcess(hProc, &exit_code); }