File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -52,13 +52,11 @@ GUID GuestDeviceManager::AddHdvShareWithOptions(
5252
5353GUID GuestDeviceManager::AddNewDevice (_In_ const GUID& deviceId, _In_ const wil::com_ptr<IPlan9FileSystem>& server, _In_ PCWSTR tag)
5454{
55- THROW_HR_IF (E_NOT_VALID_STATE, !m_deviceHostSupport);
5655 return m_deviceHostSupport->AddNewDevice (deviceId, server, tag);
5756}
5857
5958void GuestDeviceManager::AddRemoteFileSystem (_In_ REFCLSID clsid, _In_ PCWSTR tag, _In_ const wil::com_ptr<IPlan9FileSystem>& server)
6059{
61- THROW_HR_IF (E_NOT_VALID_STATE, !m_deviceHostSupport);
6260 m_deviceHostSupport->AddRemoteFileSystem (clsid, tag, server);
6361}
6462
@@ -134,16 +132,12 @@ GuestDeviceManager::DirectoryObjectLifetime GuestDeviceManager::CreateSectionObj
134132
135133wil::com_ptr<IPlan9FileSystem> GuestDeviceManager::GetRemoteFileSystem (_In_ REFCLSID clsid, _In_ std::wstring_view tag)
136134{
137- THROW_HR_IF (E_NOT_VALID_STATE, !m_deviceHostSupport);
138135 return m_deviceHostSupport->GetRemoteFileSystem (clsid, tag);
139136}
140137
141138void GuestDeviceManager::Shutdown ()
142139try
143140{
144- if (m_deviceHostSupport)
145- {
146- m_deviceHostSupport->Shutdown ();
147- }
141+ m_deviceHostSupport->Shutdown ();
148142}
149143CATCH_LOG ()
You can’t perform that action at this time.
0 commit comments