Преглед на файлове

Correctly cast in Windows kill shim

Matt Clarkson преди 10 години
родител
ревизия
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;
 }