mirror of
https://github.com/reactos/reactos.git
synced 2024-06-29 09:21:31 +00:00
[NETSHELL] Call ReleaseWriteLock. Fixes CORE-18349 (#5881)
This commit is contained in:
parent
fa4b38d902
commit
a6c838299c
|
@ -17,6 +17,10 @@ CNetConnectionPropertyUi::~CNetConnectionPropertyUi()
|
|||
if (m_pNCfg)
|
||||
m_pNCfg->Uninitialize();
|
||||
|
||||
// Note: MSDN says we can only unlock after INetCfg::Uninitialize
|
||||
if (m_NCfgLock)
|
||||
m_NCfgLock->ReleaseWriteLock();
|
||||
|
||||
if (m_pProperties)
|
||||
NcFreeNetconProperties(m_pProperties);
|
||||
}
|
||||
|
@ -181,7 +185,10 @@ CNetConnectionPropertyUi::InitializeLANPropertiesUIDlg(HWND hwndDlg)
|
|||
|
||||
hr = pNCfg->Initialize(NULL);
|
||||
if (FAILED_UNEXPECTEDLY(hr))
|
||||
{
|
||||
pNCfgLock->ReleaseWriteLock();
|
||||
return;
|
||||
}
|
||||
|
||||
m_pNCfg = pNCfg;
|
||||
m_NCfgLock = pNCfgLock;
|
||||
|
|
Loading…
Reference in a new issue