Fix crash on ARM: don't compare dummy strings.

This commit is contained in:
ehouse 2007-03-18 14:45:51 +00:00
parent 968a58785d
commit 1ad222c409

View file

@ -137,10 +137,7 @@ savedGamesHandleEvent( EventPtr event )
case XW_SAVEDGAMES_USE_BUTTON: /* write the new name to the selected case XW_SAVEDGAMES_USE_BUTTON: /* write the new name to the selected
record */ record */
newName = FldGetTextPtr( state->nameField ); newName = FldGetTextPtr( state->nameField );
if ( !!newName && if ( !!newName && (*newName != '\0') ) {
(*newName != '\0') &&
0 != StrCompare(newName,
state->stringPtrs[state->displayGameIndex])){
XP_U16 len = FldGetTextLength( state->nameField ); XP_U16 len = FldGetTextLength( state->nameField );
writeNameToGameRecord( globals, state->displayGameIndex, writeNameToGameRecord( globals, state->displayGameIndex,
newName, len ); newName, len );