Rémi Bernon (@rbernon) commented about dlls/cfgmgr32/main.c:
- callback = device_query_notify_dev_async;
- param = notify_data;
- goto done;
+abort:
- free( notify_data );
- ctx->state = DevQueryStateAborted;
- callback = device_query_context_notify_aborted_async;
- param = ctx;
+done:
- device_query_context_addref( ctx );
- success = TrySubmitThreadpoolCallback( callback, param, NULL );
- LeaveCriticalSection( &ctx->cs );
- if (!success)
device_query_context_release( ctx );
- return 0;
+}
```suggestion:-16+0 action_data->Data.DeviceObject.pszObjectId = iface_entry->path;
device_query_context_addref( notify_data->ctx ); if (!TrySubmitThreadpoolCallback( device_query_notify_dev_async, notify_data, NULL )) device_query_context_release( notify_data->ctx ); LeaveCriticalSection( &ctx->cs ); return 0;
abort: free( notify_data ); ctx->state = DevQueryStateAborted;
device_query_context_addref( ctx ); if (!TrySubmitThreadpoolCallback( device_query_context_notify_aborted_async, ctx, NULL )) device_query_context_release( ctx ); LeaveCriticalSection( &ctx->cs ); return 0; } ```