[ros-diffs] [amunger] 35893: Pass the ImagePath buffer as the command line, not the application name. After the recent changes, the ImaagePath buffer contains a properly formatted command line. This change allows you to start services with parameters listed in the ImagePath, like Abyss and MySQL.

amunger at svn.reactos.org amunger at svn.reactos.org
Wed Sep 3 14:39:18 CEST 2008


Author: amunger
Date: Tue Sep  2 23:33:51 2008
New Revision: 35893

URL: http://svn.reactos.org/svn/reactos?rev=35893&view=rev
Log:
Pass the ImagePath buffer as the command line, not the application name.  After the recent changes, the ImaagePath buffer contains a properly formatted command line.
This change allows you to start services with parameters listed in the ImagePath, like Abyss and MySQL.

Modified:
    trunk/reactos/base/system/services/database.c

Modified: trunk/reactos/base/system/services/database.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/services/database.c?rev=35893&r1=35892&r2=35893&view=diff
==============================================================================
--- trunk/reactos/base/system/services/database.c [iso-8859-1] (original)
+++ trunk/reactos/base/system/services/database.c [iso-8859-1] Tue Sep  2 23:33:51 2008
@@ -896,8 +896,8 @@
     StartupInfo.cbReserved2 = 0;
     StartupInfo.lpReserved2 = 0;
 
-    Result = CreateProcessW(ImagePath.Buffer,
-                            NULL,
+    Result = CreateProcessW(NULL,
+                            ImagePath.Buffer,
                             NULL,
                             NULL,
                             FALSE,



More information about the Ros-diffs mailing list