WSLA: Store instanceId for virtiofs so the shares can be cleaned up later

This commit is contained in:
Ben Hillis 2025-12-15 12:52:47 -08:00
parent 68a6c4869d
commit f303964dc5
1 changed files with 1 additions and 1 deletions

View File

@ -1200,7 +1200,7 @@ try
else
{
const bool admin = wsl::windows::common::security::IsTokenElevated(userToken.get());
m_guestDeviceManager->AddGuestDevice(
instanceId = m_guestDeviceManager->AddGuestDevice(
VIRTIO_FS_DEVICE_ID,
admin ? WSLA_VIRTIO_FS_ADMIN_CLASS_ID : WSLA_VIRTIO_FS_CLASS_ID,
shareName.c_str(),