mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 02:43:09 +00:00
Fix compiler errors. Patch by Herve Poussineau. Fixes bug 478
svn path=/trunk/; revision=13267
This commit is contained in:
parent
dcee180336
commit
c0441b0e5f
20 changed files with 87 additions and 96 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue