Commit 7c387c0b authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

winexinput.sys: Force debug info in critical sections.

parent cfab11e1
...@@ -785,6 +785,8 @@ static NTSTATUS WINAPI fdo_pnp(DEVICE_OBJECT *device, IRP *irp) ...@@ -785,6 +785,8 @@ static NTSTATUS WINAPI fdo_pnp(DEVICE_OBJECT *device, IRP *irp)
IoSkipCurrentIrpStackLocation(irp); IoSkipCurrentIrpStackLocation(irp);
status = IoCallDriver(fdo->bus_device, irp); status = IoCallDriver(fdo->bus_device, irp);
IoDetachDevice(fdo->bus_device); IoDetachDevice(fdo->bus_device);
if (fdo->cs.DebugInfo)
fdo->cs.DebugInfo->Spare[0] = 0;
RtlDeleteCriticalSection(&fdo->cs); RtlDeleteCriticalSection(&fdo->cs);
HidP_FreeCollectionDescription(&fdo->device_desc); HidP_FreeCollectionDescription(&fdo->device_desc);
free(fdo->report_buf); free(fdo->report_buf);
...@@ -871,7 +873,7 @@ static NTSTATUS WINAPI add_device(DRIVER_OBJECT *driver, DEVICE_OBJECT *bus_devi ...@@ -871,7 +873,7 @@ static NTSTATUS WINAPI add_device(DRIVER_OBJECT *driver, DEVICE_OBJECT *bus_devi
fdo->bus_device = bus_device; fdo->bus_device = bus_device;
wcscpy(fdo->instance_id, instance_id); wcscpy(fdo->instance_id, instance_id);
RtlInitializeCriticalSection(&fdo->cs); RtlInitializeCriticalSectionEx(&fdo->cs, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO);
fdo->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": func_device.cs"); fdo->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": func_device.cs");
TRACE("device %p, bus_id %s, device_id %s, instance_id %s.\n", device, debugstr_w(bus_id), TRACE("device %p, bus_id %s, device_id %s, instance_id %s.\n", device, debugstr_w(bus_id),
......
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