{
SetErrnoFromWinError (GetLastError ());
GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_ERROR, "FindExecutable", filename);
- return -1;
+ return (pid_t) -1;
}
if (!CreateProcessA
{
SetErrnoFromWinError (GetLastError ());
GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_ERROR, "CreateProcess", path);
- return -1;
+ return (pid_t) -1;
}
CreateThread (NULL, 64000, ChildWaitThread, proc.hProcess, 0, NULL);
return GNUNET_SYSERR;
}
- c = GetExitCodeProcess ((HANDLE) proc, &c);
+ c = GetExitCodeProcess (h, &c);
if (STILL_ACTIVE == c)
{
*type = GNUNET_OS_PROCESS_RUNNING;