ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/win_process.c
(Generate patch)

Comparing ray/src/common/win_process.c (file contents):
Revision 3.6 by schorsch, Mon Sep 19 11:30:10 2005 UTC vs.
Revision 3.7 by greg, Thu Jun 14 05:13:25 2012 UTC

# Line 185 | Line 185 | error: /* cleanup */
185          if(hWrite) CloseHandle(hWrite);
186          if(hCurProc) CloseHandle(hCurProc);
187          proc->running = 0;
188 <        return 0;
188 >        return -1;
189          /* There... Are we happy now? */
190   }
191  
# Line 280 | Line 280 | open_process(SUBPROC *proc, char *av[])
280          char *cmdstr;
281  
282          proc->running = 0;
283 +        if (av == NULL) { return -1; }
284          cmdpath = getpath(av[0], getenv("PATH"), X_OK);
285          cmdstr = quoted_cmdline(cmdpath, av+1);
286          if (cmdstr == NULL) { return 0; }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines