fix for STUBBED_DICT case

This commit is contained in:
ehouse 2005-11-27 20:13:42 +00:00
parent 0df6b6c049
commit 908f4d1952

View file

@ -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--";