Fix multiple calls to wxSocket::Initialize() in wxMSW.

Subsequent calls didn't initialize the hidden window correctly because
wxSocket::Shutdown() unregistered the window class used for it, but
wxSocket::Initialize() still kept a pointer to the previously registered class
name.

Don't remember it any longer, unlike in the other cases where we use
wxCreateHiddenWindow(), this function is only ever going to be called once
until the class is unregistered anyhow, so it doesn't have to be static.

Closes #15701.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75288 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2013-11-25 13:41:10 +00:00
parent ffdde87536
commit 407c0595ff
2 changed files with 2 additions and 1 deletions

View File

@@ -594,6 +594,7 @@ wxMSW:
- Fix blank wxBitmapComboBox dropdown appearance.
- Make "%lu" work with size_t arguments under Win64 (laro).
- Fix wxRegion::Offset() with shared objects (Joost Nieuwenhuijse).
- Fix wxSocket::Initialize() after Shutdown() (Laurent Poujoulat).
wxOSX:

View File

@@ -191,7 +191,7 @@ wxDynamicLibrary wxSocketMSWManager::gs_wsock32dll;
bool wxSocketMSWManager::OnInit()
{
static LPCTSTR pclassname = NULL;
LPCTSTR pclassname = NULL;
int i;
/* Create internal window for event notifications */