mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-15 08:47:56 +01:00
Fix crash on ARM: don't compare dummy strings.
This commit is contained in:
parent
968a58785d
commit
1ad222c409
1 changed files with 1 additions and 4 deletions
|
@ -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 );
|
||||||
|
|
Loading…
Add table
Reference in a new issue