Fix compiler errors. Patch by Herve Poussineau. Fixes bug 478

svn path=/trunk/; revision=13267
This commit is contained in:
Alex Ionescu 2005-01-25 05:11:17 +00:00
parent dcee180336
commit c0441b0e5f
20 changed files with 87 additions and 96 deletions

View file

@ -40,7 +40,7 @@ ExecuteKill(char * lpPid)
DWORD dwProcessId;
dwProcessId = (DWORD) atol(lpPid);
fprintf( stderr, "Killing PID %d...\n",dwProcessId);
fprintf( stderr, "Killing PID %ld...\n",dwProcessId);
hProcess = OpenProcess(
PROCESS_TERMINATE,
FALSE,
@ -48,7 +48,7 @@ ExecuteKill(char * lpPid)
);
if (NULL == hProcess)
{
fprintf( stderr, "Could not open the process with PID = %d\n", dwProcessId);
fprintf( stderr, "Could not open the process with PID = %ld\n", dwProcessId);
return 0;
}
if (FALSE == TerminateProcess(
@ -56,7 +56,7 @@ ExecuteKill(char * lpPid)
0
)
) {
fprintf( stderr, "Could not terminate the process with PID = %d\n", dwProcessId);
fprintf( stderr, "Could not terminate the process with PID = %ld\n", dwProcessId);
return 0;
}
CloseHandle(hProcess);