The DefWindowProc is not called anymore on WM_SETTINGCHANGE since it can cause crashes.

This commit is contained in:
Kimmo Pekkola 2009-07-28 09:16:07 +00:00
parent 3edce908b4
commit 978988d41b
3 changed files with 5 additions and 2 deletions

View File

@ -241,6 +241,7 @@
RuntimeTypeInfo="true"
UsePrecompiledHeader="0"
PrecompiledHeaderFile=".\x32/Release/Library.pch"
AssemblerOutput="2"
AssemblerListingLocation=".\x32/Release/"
ObjectFile=".\x32/Release/"
ProgramDataBaseFileName=".\x32/Release/"

View File

@ -2519,7 +2519,9 @@ LRESULT CMeterWindow::OnSettingChange(WPARAM wParam, LPARAM lParam)
{
m_Monitors.count = 0;
Refresh(false);
return DefWindowProc(m_Window, m_Message, wParam, lParam);
// Commented: Calling DefWindowProc seems to cause crash sometimes
return 0; // DefWindowProc(m_Window, m_Message, wParam, lParam);
}
/*

View File

@ -1,2 +1,2 @@
#pragma once
const int revision_number = 93;
const int revision_number = 103;