Commit 946e1b2f authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

services: Report a PID of 0 for drivers.

parent 2ed141d6
......@@ -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;
}
......
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