Commit 0a5e707a authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent aafcfe76
...@@ -1590,8 +1590,14 @@ BOOL WINAPI StartServiceW(SC_HANDLE hService, DWORD dwNumServiceArgs, ...@@ -1590,8 +1590,14 @@ BOOL WINAPI StartServiceW(SC_HANDLE hService, DWORD dwNumServiceArgs,
if (handle != INVALID_HANDLE_VALUE) if (handle != INVALID_HANDLE_VALUE)
{ {
if (service_send_start_message(handle, lpServiceArgVectors, dwNumServiceArgs)) r = service_send_start_message(handle, lpServiceArgVectors, dwNumServiceArgs);
r = service_set_processID(handle, dwProcessId, &dwResult); CloseHandle(handle);
}
handle = service_open_pipe(hsvc->name);
if (handle != INVALID_HANDLE_VALUE)
{
service_set_processID(handle, dwProcessId, &dwResult);
CloseHandle(handle); CloseHandle(handle);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment