winebus.sys: Unlink device before releasing it.
commitdb410052a397d257dbbe88903336285741d8cb0b
authorRémi Bernon <rbernon@codeweavers.com>
Mon, 16 Aug 2021 07:04:28 +0000 (16 09:04 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 16 Aug 2021 22:43:52 +0000 (17 00:43 +0200)
treede838773fcff1876b2d94be946b167369fe43549
parentd3885f92fc71ae8330935fe880d7524ab7385b6b
winebus.sys: Unlink device before releasing it.

Otherwise the device will still be linked in the device list and any
thread iterating it to find a matching device will access stale pointer.

Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/winebus.sys/main.c