PATCH - kernel/process.c use NtWaitForMultipleObjects

Steven Edwards steven_ed4153 at yahoo.com
Fri May 20 12:22:20 CDT 2005


I have this crazy idea of one day implementing NtCreateProcess or RtlCreateUserProcess so we can
share most of CreateProcess and friends with ReactOS. In the meantime lets try to always use the
NT API so we will have less trouble moving parts of the code to ntdll later on.

Changelog:
Use NtWaitForMultipleObjects with a single object rather than WaitForSingleObject.

Index: process.c
===================================================================
RCS file: /home/wine/wine/dlls/kernel/process.c,v
retrieving revision 1.87
diff -u -r1.87 process.c
--- process.c   20 Apr 2005 15:43:36 -0000      1.87
+++ process.c   20 May 2005 17:19:39 -0000
@@ -1636,7 +1636,7 @@
 
     /* wait for the new process info to be ready */
 
-    WaitForSingleObject( process_info, INFINITE );
+    NtWaitForMultipleObjects( 1, process_info, FALSE, INFINITE, NULL );
     SERVER_START_REQ( get_new_process_info )
     {
         req->info     = process_info;



		
Yahoo! Mail
Stay connected, organized, and protected. Take the tour:
http://tour.mail.yahoo.com/mailtour.html




More information about the wine-patches mailing list