mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 23:12:56 +00:00
[IERNONCE] Check m_RegKey before deleting a value from it
This fixes an assert, when _DEBUG is defined.
This commit is contained in:
parent
a6a07059c1
commit
40b45515a4
1 changed files with 5 additions and 2 deletions
|
@ -311,8 +311,11 @@ BOOL RunOnceExInstance::Exec(_In_opt_ HWND hwnd)
|
||||||
m_SectionList[i].CloseAndDelete(m_RegKey);
|
m_SectionList[i].CloseAndDelete(m_RegKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (m_RegKey)
|
||||||
|
{
|
||||||
m_RegKey.DeleteValue(L"Title");
|
m_RegKey.DeleteValue(L"Title");
|
||||||
m_RegKey.DeleteValue(L"Flags");
|
m_RegKey.DeleteValue(L"Flags");
|
||||||
|
}
|
||||||
|
|
||||||
// Notify the dialog all sections are handled.
|
// Notify the dialog all sections are handled.
|
||||||
if (hwnd)
|
if (hwnd)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue