services: Report a PID of 0 for drivers.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2019-07-03 17:29:34 -05:00 committed by Alexandre Julliard
parent 2ed141d680
commit 946e1b2f6b
1 changed files with 3 additions and 1 deletions

View File

@ -831,7 +831,9 @@ static void fill_status_process(SERVICE_STATUS_PROCESS *status, struct service_e
{
struct process_entry *process = service->process;
memcpy(status, &service->status, sizeof(service->status));
status->dwProcessId = process ? process->process_id : 0;
status->dwProcessId = 0;
if (process && !(service->status.dwServiceType & SERVICE_DRIVER))
status->dwProcessId = process->process_id;
status->dwServiceFlags = 0;
}