advapi32: Fix set process request, a pipe instance can only handle one request.
This commit is contained in:
parent
aafcfe7663
commit
0a5e707a39
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue