[ros-diffs] [hpoussin] 33799: Start Rpc server listener thread before device installer thread See issue #3068 for more details.

hpoussin at svn.reactos.org hpoussin at svn.reactos.org
Sun Jun 1 12:49:28 CEST 2008


Author: hpoussin
Date: Sun Jun  1 05:49:28 2008
New Revision: 33799

URL: http://svn.reactos.org/svn/reactos?rev=33799&view=rev
Log:
Start Rpc server listener thread before device installer thread
See issue #3068 for more details.

Modified:
    trunk/reactos/base/services/umpnpmgr/umpnpmgr.c

Modified: trunk/reactos/base/services/umpnpmgr/umpnpmgr.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/services/umpnpmgr/umpnpmgr.c?rev=33799&r1=33798&r2=33799&view=diff
==============================================================================
--- trunk/reactos/base/services/umpnpmgr/umpnpmgr.c [iso-8859-1] (original)
+++ trunk/reactos/base/services/umpnpmgr/umpnpmgr.c [iso-8859-1] Sun Jun  1 05:49:28 2008
@@ -2170,6 +2170,15 @@
 
     hThread = CreateThread(NULL,
                            0,
+                           RpcServerThread,
+                           NULL,
+                           0,
+                           &dwThreadId);
+    if (hThread != NULL)
+        CloseHandle(hThread);
+
+    hThread = CreateThread(NULL,
+                           0,
                            DeviceInstallThread,
                            NULL,
                            0,
@@ -2177,15 +2186,6 @@
     if (hThread != NULL)
         CloseHandle(hThread);
 
-    hThread = CreateThread(NULL,
-                           0,
-                           RpcServerThread,
-                           NULL,
-                           0,
-                           &dwThreadId);
-    if (hThread != NULL)
-        CloseHandle(hThread);
-
     DPRINT("ServiceMain() done\n");
 }
 



More information about the Ros-diffs mailing list