mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-26 19:33:31 +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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user