From 1f50361e250184d898bc095968a764fc30952458 Mon Sep 17 00:00:00 2001 From: squall-leonhart Date: Mon, 3 Sep 2012 09:14:27 +0000 Subject: [PATCH] this makes the serverwait dialog appear. still causes a crash in release builds and points at output.c in an area of unicode :| --- src/win32/LinkOptions.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/win32/LinkOptions.cpp b/src/win32/LinkOptions.cpp index d851a4ae..5886f66d 100644 --- a/src/win32/LinkOptions.cpp +++ b/src/win32/LinkOptions.cpp @@ -552,7 +552,10 @@ void LinkServer::OnServerStart() sf::IPAddress addr; // These must be created on the heap - referenced from the connection thread - ServerWait *dlg = new ServerWait; + ServerWait *dlg = new ServerWait(); + dlg->Create(IDD_SERVERWAIT, this); + dlg->ShowWindow(SW_SHOW); + // Owns the ServerWait* Win32ServerInfoDisplay *dlginfo = new Win32ServerInfoDisplay(dlg); @@ -644,7 +647,10 @@ void LinkClient::OnLinkConnect() m_serverip.GetWindowText(ipaddress, 30); // These must be created on the heap - referenced from the connection thread - ServerWait *dlg = new ServerWait; + ServerWait *dlg = new ServerWait(); + dlg->Create(IDD_SERVERWAIT, this); + dlg->ShowWindow(SW_SHOW); + // Owns the ServerWait* Win32ClientInfoDisplay *dlginfo = new Win32ClientInfoDisplay(dlg);