Alexandre Julliard : secur32: Check for lack of fork() support.

Alexandre Julliard julliard at winehq.org
Tue Dec 23 13:40:38 CST 2008


Module: wine
Branch: master
Commit: 866240d4fd948598e06945a4327176403a736ea3
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=866240d4fd948598e06945a4327176403a736ea3

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Dec 22 18:04:39 2008 +0100

secur32: Check for lack of fork() support.

---

 dlls/secur32/dispatcher.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/dlls/secur32/dispatcher.c b/dlls/secur32/dispatcher.c
index 5707e6a..91f425c 100644
--- a/dlls/secur32/dispatcher.c
+++ b/dlls/secur32/dispatcher.c
@@ -44,6 +44,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(ntlm);
 SECURITY_STATUS fork_helper(PNegoHelper *new_helper, const char *prog,
         char* const argv[])
 {
+#ifdef HAVE_FORK
     int pipe_in[2];
     int pipe_out[2];
     int i;
@@ -132,6 +133,10 @@ SECURITY_STATUS fork_helper(PNegoHelper *new_helper, const char *prog,
     }
 
     return SEC_E_OK;
+#else
+    ERR( "no fork support on this platform\n" );
+    return SEC_E_INTERNAL_ERROR;
+#endif
 }
 
 static SECURITY_STATUS read_line(PNegoHelper helper, int *offset_len)




More information about the wine-cvs mailing list