No subject


Tue Aug 30 15:12:41 CDT 2005


the Win32 app detects an 'error 0' and displays an annoying
message.
Cause : AFAICT the wait for input idle.
This patch just removes any Win32 handling when dealing
with native programs.

ChangeLog:

	* scheduler/process.c
               Don't return an error code 0 for native executables.

--=====================_1003961308==_
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: attachment; filename="execunix.dif"

Index: scheduler/process.c
===================================================================
RCS file: /home/wine/wine/scheduler/process.c,v
retrieving revision 1.162
diff -u -r1.162 process.c
--- scheduler/process.c	2001/10/03 18:40:10	1.162
+++ scheduler/process.c	2001/10/24 18:28:08
@@ -768,6 +768,7 @@
     {
         errno = err;
         pid = -1;
+        if (filename) TRACE("unix errno %d for process(?) '%s'\n", err, filename);
     }
     if (pid == -1) FILE_SetDosError();
     close( fd[0] );
@@ -857,6 +858,12 @@
 
     pid = fork_and_exec( unixfilename, cmd_line, env, unixdir );
 
+    if (!hFile)
+    { /* unix process launched : no need to bother further */
+         CloseHandle( process_info );
+         return pid == -1 ? FALSE : TRUE;
+    }
+        
     /* wait for the new process info to be ready */
 
     ret = FALSE;

--=====================_1003961308==_
Content-Type: text/plain; charset="us-ascii"


--=====================_1003961308==_--





More information about the wine-patches mailing list