Sfoglia il codice sorgente

Correctly cast in Windows kill shim

Matt Clarkson 10 anni fa
parent
commit
379a25e7c1
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  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;
 }