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.8 by greg, Fri Nov 8 18:08:07 2013 UTC vs.
Revision 3.9 by greg, Wed Feb 12 00:15:40 2014 UTC

# Line 167 | Line 167 | start_process(SUBPROC *proc, char *cmdstr)
167          CloseHandle(hFromChildWrite); hFromChildWrite = NULL;
168          CloseHandle(hToChildRead); hToChildRead = NULL;
169          /* get the file descriptors */
170 <        proc->r = _open_osfhandle((long)hRead, _O_RDONLY);
171 <        proc->w = _open_osfhandle((long)hWrite, _O_APPEND);
170 >        proc->r = _open_osfhandle((long)hRead, _O_RDONLY|_O_BINARY);
171 >        proc->w = _open_osfhandle((long)hWrite, _O_APPEND|_O_BINARY);
172          proc->pid = PInfo.dwProcessId;
173          proc->running = 1;
174          CloseHandle(hCurProc);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines