advapi32: Fix set process request, a pipe instance can only handle one request.

This commit is contained in:
Alexandre Julliard 2007-05-08 21:35:34 +02:00
parent aafcfe7663
commit 0a5e707a39
1 changed files with 8 additions and 2 deletions

View File

@ -1590,8 +1590,14 @@ BOOL WINAPI StartServiceW(SC_HANDLE hService, DWORD dwNumServiceArgs,
if (handle != INVALID_HANDLE_VALUE)
{
if (service_send_start_message(handle, lpServiceArgVectors, dwNumServiceArgs))
r = service_set_processID(handle, dwProcessId, &dwResult);
r = service_send_start_message(handle, lpServiceArgVectors, dwNumServiceArgs);
CloseHandle(handle);
}
handle = service_open_pipe(hsvc->name);
if (handle != INVALID_HANDLE_VALUE)
{
service_set_processID(handle, dwProcessId, &dwResult);
CloseHandle(handle);
}