From 030759d5fe6ccd191fd813e987a5bc4b681d2dfb Mon Sep 17 00:00:00 2001 From: ehouse Date: Sun, 9 Jan 2005 18:50:19 +0000 Subject: [PATCH] param change --- symbian/src/symdict.cpp | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/symbian/src/symdict.cpp b/symbian/src/symdict.cpp index 6ee7b83dd..77334fb17 100644 --- a/symbian/src/symdict.cpp +++ b/symbian/src/symdict.cpp @@ -191,8 +191,16 @@ readFileToBuf( XP_UCHAR* dictBuf, const RFile* file ) } // readFileToBuf DictionaryCtxt* -sym_dictionary_makeL( MPFORMAL TFileName* nameD ) +sym_dictionary_makeL( MPFORMAL const XP_UCHAR* aDictName ) { + _LIT( dir,"z:\\system\\apps\\XWORDS\\" ); + TFileName nameD; /* need the full path to name in this */ + nameD.Copy( dir ); + TBuf8<32> dname8(aDictName); + TBuf16<32> dname16; + dname16.Copy( dname8 ); + nameD.Append( dname16 ); + nameD.Append( _L(".xwd") ); SymDictCtxt* ctxt = NULL; TInt err; @@ -201,7 +209,7 @@ sym_dictionary_makeL( MPFORMAL TFileName* nameD ) CleanupClosePushL(fileSession); RFile file; - User::LeaveIfError( file.Open( fileSession, *nameD, EFileRead ) ); + User::LeaveIfError( file.Open( fileSession, nameD, EFileRead ) ); CleanupClosePushL(file); ctxt = (SymDictCtxt*)XP_MALLOC( mpool, sizeof(*ctxt) ); @@ -291,8 +299,8 @@ sym_dictionary_makeL( MPFORMAL TFileName* nameD ) ctxt->super.base = (array_edge*)NULL; } - CleanupStack::PopAndDestroy(); - CleanupStack::PopAndDestroy(); + CleanupStack::PopAndDestroy(); // file + CleanupStack::PopAndDestroy(); // fileSession return &ctxt->super; } // sym_dictionary_make