fix proflie creation crash

This commit is contained in:
Glenn Maynard
2004-01-01 01:33:34 +00:00
parent 30689e51b5
commit f979d8474f
+1 -1
View File
@@ -139,7 +139,7 @@ void ScreenProfileOptions::HandleScreenMessage( const ScreenMessage SM )
switch( SM ) switch( SM )
{ {
case SM_DoneCreating: case SM_DoneCreating:
if( !ScreenTextEntry::s_bCancelledLast ) if( !ScreenTextEntry::s_bCancelledLast && ScreenTextEntry::s_sLastAnswer != "" )
{ {
CString sNewName = ScreenTextEntry::s_sLastAnswer; CString sNewName = ScreenTextEntry::s_sLastAnswer;
bool bResult = PROFILEMAN->CreateLocalProfile( sNewName ); bool bResult = PROFILEMAN->CreateLocalProfile( sNewName );