Просмотр исходного кода

Correctly cast in Windows kill shim

Matt Clarkson 10 лет назад
Родитель
Сommit
379a25e7c1
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/civetweb.c

+ 2 - 2
src/civetweb.c

@@ -2602,8 +2602,8 @@ static int dlclose(void *handle)
 #define SIGKILL (0)
 static int kill(pid_t pid, int sig_num)
 {
-	(void)TerminateProcess(pid, sig_num);
-	(void)CloseHandle(pid);
+	(void)TerminateProcess((HANDLE)pid, (UINT)sig_num);
+	(void)CloseHandle((HANDLE)pid);
 	return 0;
 }