Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'core/org.eclipse.cdt.core.win32/library')
-rw-r--r--core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c b/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c
index d1988c171a5..c23bc32ae29 100644
--- a/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c
+++ b/core/org.eclipse.cdt.core.win32/library/Win32ProcessEx.c
@@ -224,11 +224,11 @@ JNIEXPORT jint JNICALL Java_org_eclipse_cdt_utils_spawner_Spawner_exec0
}
// Construct starter's command line
- swprintf(eventBreakName, L"SABreak%010i", nLocalCounter);
- swprintf(eventWaitName, L"SAWait%010i", nLocalCounter);
- swprintf(eventTerminateName, L"SATerm%010i", nLocalCounter);
- swprintf(eventKillName, L"SAKill%010i", nLocalCounter);
- swprintf(eventCtrlcName, L"SACtrlc%010i", nLocalCounter);
+ swprintf(eventBreakName, L"SABreak%04x%08x", pid, nLocalCounter);
+ swprintf(eventWaitName, L"SAWait%004x%08x", pid, nLocalCounter);
+ swprintf(eventTerminateName, L"SATerm%004x%08x", pid, nLocalCounter);
+ swprintf(eventKillName, L"SAKill%04x%08x", pid, nLocalCounter);
+ swprintf(eventCtrlcName, L"SACtrlc%04x%08x", pid, nLocalCounter);
pCurProcInfo->eventBreak = CreateEventW(NULL, FALSE, FALSE, eventBreakName);
if(NULL == pCurProcInfo->eventBreak || GetLastError() == ERROR_ALREADY_EXISTS)

Back to the top