Explorar o código

Correctly cast in Windows kill shim

Matt Clarkson %!s(int64=10) %!d(string=hai) anos
pai
achega
379a25e7c1
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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;
 }