do not overwrite ms_{hwnd,className} in wxTimerHiddenWindowModule::OnInit() in case they were already initialized

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60669 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-05-17 09:58:14 +00:00
parent a4afdcf342
commit 24a21a5f1d

View File

@@ -192,8 +192,10 @@ const wxChar *wxTimerHiddenWindowModule::ms_className = NULL;
bool wxTimerHiddenWindowModule::OnInit() bool wxTimerHiddenWindowModule::OnInit()
{ {
ms_hwnd = NULL; // do not initialize ms_hwnd to ms_className to NULL here: it may happen
ms_className = NULL; // that our GetHWND() is called before the modules are initialized if a
// timer is created from wxApp-derived class ctor and in this case we
// shouldn't overwrite it
return true; return true;
} }