diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/PopupHostGame.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/PopupHostGame.cpp index 57cc9045cbd..507f658e169 100644 --- a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/PopupHostGame.cpp +++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/PopupHostGame.cpp @@ -596,16 +596,10 @@ WindowMsgHandledType PopupHostGameSystem( GameWindow *window, UnsignedInt msg, W name.trim(); if(name.isEmpty()) { - NGMP_OnlineServices_AuthInterface* pAuthInterface = NGMP_OnlineServicesManager::GetInterface(); - if (pAuthInterface != nullptr) - { - name.format(L"%s", pAuthInterface->GetDisplayName()); - GadgetTextEntrySetText(textEntryGameName, name); - } - else - { - name = L"Generals Online Lobby"; - } + SetLobbyAttemptHostJoin(FALSE); + GameSpyCloseOverlay(GSOVERLAY_GAMEOPTIONS); + GSMessageBoxOk(TheGameText->fetch("GUI:Error"), UnicodeString(L"Please enter a lobby name."), nullptr); + break; } #if defined(GENERALS_ONLINE) // save last used lobby name to CustomPref.ini