diff options
author | Alain Magloire | 2004-04-29 15:54:32 +0000 |
---|---|---|
committer | Alain Magloire | 2004-04-29 15:54:32 +0000 |
commit | 79f4e89182f131d4ce3273b6d77ff51145a47756 (patch) | |
tree | f7b88a0e74e74d5ac7ddfa3829146a67b2302a68 /core/org.eclipse.cdt.core.win32/library/raise.c | |
parent | b984f9d6ea6422f2528bab237415f886fd7dbdd7 (diff) | |
download | org.eclipse.cdt-79f4e89182f131d4ce3273b6d77ff51145a47756.tar.gz org.eclipse.cdt-79f4e89182f131d4ce3273b6d77ff51145a47756.tar.xz org.eclipse.cdt-79f4e89182f131d4ce3273b6d77ff51145a47756.zip |
Commit support for i18n from Alex Chapiro.
updates spawner and starter
Diffstat (limited to 'core/org.eclipse.cdt.core.win32/library/raise.c')
-rw-r--r-- | core/org.eclipse.cdt.core.win32/library/raise.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/core/org.eclipse.cdt.core.win32/library/raise.c b/core/org.eclipse.cdt.core.win32/library/raise.c index b4305e222f4..ecd8bedbac8 100644 --- a/core/org.eclipse.cdt.core.win32/library/raise.c +++ b/core/org.eclipse.cdt.core.win32/library/raise.c @@ -64,7 +64,7 @@ find_child_console (HWND hwnd, LPARAM arg) int interruptProcess(int pid)
{
#ifdef DEBUG_MONITOR
- char buffer[1000];
+ _TCHAR buffer[1000];
#endif
int rc;
// Try another method
@@ -72,8 +72,8 @@ int interruptProcess(int pid) consoleHWND = NULL;
#ifdef DEBUG_MONITOR
- sprintf(buffer, "Try to interrupt process %i\n", pid);
- OutputDebugString(buffer);
+ _stprintf(buffer, _T("Try to interrupt process %i\n"), pid);
+ OutputDebugStringW(buffer);
#endif
// Find console
EnumWindows (find_child_console, (LPARAM) pid);
@@ -140,16 +140,15 @@ int interruptProcess(int pid) AttachThreadInput (GetCurrentThreadId (),
child_thread, FALSE);
#ifdef DEBUG_MONITOR
- sprintf(buffer, "Sent Ctrl-C & Ctrl-Break to process %i\n", pid);
- OutputDebugString(buffer);
+ _stprintf(buffer, _T("Sent Ctrl-C & Ctrl-Break to process %i\n"), pid);
+ OutputDebugStringW(buffer);
#endif
}
}
#ifdef DEBUG_MONITOR
else {
- sprintf(buffer, "Cannot find console for process %i\n", pid);
-
- OutputDebugString(buffer);
+ _stprintf(buffer, _T("Cannot find console for process %i\n"), pid);
+ OutputDebugStringW(buffer);
}
#endif
|