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.

svn path=/trunk/; revision=35893
This commit is contained in:
Andrew Munger 2008-09-02 21:33:51 +00:00
parent 2e3327d922
commit cae5d127c8

View 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,