mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-11-16 07:48:07 +01:00
fix for STUBBED_DICT case
This commit is contained in:
parent
aba81b8627
commit
66fffb7fe9
1 changed files with 4 additions and 3 deletions
|
@ -102,7 +102,9 @@ loadFromGameInfo( HWND hDlg, CEAppGlobals* globals, GameInfoState* giState )
|
|||
#endif
|
||||
|
||||
/* set the dictionary name */
|
||||
if ( !!gi->dictName ) {
|
||||
if ( 0 ) {
|
||||
#ifndef STUBBED_DICT
|
||||
} else if ( !!gi->dictName ) {
|
||||
str = bname( gi->dictName );
|
||||
XP_MEMCPY( giState->newDictName, gi->dictName,
|
||||
(XP_U16)XP_STRLEN(gi->dictName)+1 );
|
||||
|
@ -111,11 +113,10 @@ loadFromGameInfo( HWND hDlg, CEAppGlobals* globals, GameInfoState* giState )
|
|||
XP_MEMCPY( giState->newDictName, str, (XP_U16)XP_STRLEN(str)+1 );
|
||||
XP_FREE( globals->mpool, str );
|
||||
str = bname( giState->newDictName );
|
||||
|
||||
#endif
|
||||
} else {
|
||||
#ifdef STUBBED_DICT
|
||||
/* assumption is there's no dict on the device */
|
||||
XP_ASSERT( !ceLocateNthDict( MPPARM(globals->mpool) 0 ) );
|
||||
str = "(Stub dict)";
|
||||
#else
|
||||
str = "--pick--";
|
||||
|
|
Loading…
Reference in a new issue