mirror of
https://github.com/reactos/reactos.git
synced 2025-04-28 01:11:35 +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_RegKey.DeleteValue(L"Title");
|
||||
m_RegKey.DeleteValue(L"Flags");
|
||||
if (m_RegKey)
|
||||
{
|
||||
m_RegKey.DeleteValue(L"Title");
|
||||
m_RegKey.DeleteValue(L"Flags");
|
||||
}
|
||||
|
||||
// Notify the dialog all sections are handled.
|
||||
if (hwnd)
|
||||
|
|
Loading…
Reference in a new issue