Pass the ImagePath buffer as the command line, not the application name. After the...
authorAndrew Munger <waxdragon@gmail.com>
Tue, 2 Sep 2008 21:33:51 +0000 (21:33 +0000)
committerAndrew Munger <waxdragon@gmail.com>
Tue, 2 Sep 2008 21:33:51 +0000 (21:33 +0000)
This change allows you to start services with parameters listed in the ImagePath, like Abyss and MySQL.

svn path=/trunk/; revision=35893

reactos/base/system/services/database.c

index ecc9186..3fd38d9 100644 (file)
@@ -896,8 +896,8 @@ ScmStartUserModeService(PSERVICE Service,
     StartupInfo.cbReserved2 = 0;
     StartupInfo.lpReserved2 = 0;
 
-    Result = CreateProcessW(ImagePath.Buffer,
-                            NULL,
+    Result = CreateProcessW(NULL,
+                            ImagePath.Buffer,
                             NULL,
                             NULL,
                             FALSE,