summaryrefslogtreecommitdiffstats
path: root/otherlibs/win32unix/createprocess.c
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>1996-09-05 13:32:25 +0000
committerXavier Leroy <xavier.leroy@inria.fr>1996-09-05 13:32:25 +0000
commit6ded697b42a2f40a96c774975e36e99897195aec (patch)
tree101febfe5774275c5392863fd93a004465e58bc0 /otherlibs/win32unix/createprocess.c
parentb973b44d9fa9e63d5504cc59e5078411b30efe03 (diff)
Premiere compilation.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@956 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/win32unix/createprocess.c')
-rw-r--r--otherlibs/win32unix/createprocess.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/otherlibs/win32unix/createprocess.c b/otherlibs/win32unix/createprocess.c
index 2509ec5b4..c49b3da8f 100644
--- a/otherlibs/win32unix/createprocess.c
+++ b/otherlibs/win32unix/createprocess.c
@@ -30,10 +30,10 @@ value win_create_process_native(exe, cmdline, env, fd1, fd2, fd3)
GetStartupInfo(&si);
si.dwFlags |= STARTF_USESTDHANDLES;
- if ((si.hStdInput = _get_osfhandle(Int_val(fd1))) == -1 ||
- (si.hStdOutput = _get_osfhandle(Int_val(fd2))) == -1 ||
- (si.hStdError = _get_osfhandle(Int_val(fd3))) == -1 ||
- ! CreateProcess(String_val(exe), String_val(cmdline), NULL, NULL,
+ si.hStdInput = (HANDLE) _get_osfhandle(Int_val(fd1));
+ si.hStdOutput = (HANDLE) _get_osfhandle(Int_val(fd2));
+ si.hStdError = (HANDLE) _get_osfhandle(Int_val(fd3));
+ if (! CreateProcess(String_val(exe), String_val(cmdline), NULL, NULL,
TRUE, 0, envp, NULL, &si, &pi)) {
_dosmaperr(GetLastError());
uerror("create_process", exe);