mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-15 15:41:24 +01:00
More of dict search change: failed to save buffer before checkin
This commit is contained in:
parent
ffc4de8c47
commit
08b20dc431
1 changed files with 3 additions and 4 deletions
|
@ -586,7 +586,8 @@ locateOneDir( MPFORMAL wchar_t* path, OnePathCB cb, void* ctxt, XP_U16 nSought,
|
|||
/* skip . and .. */
|
||||
} else {
|
||||
lstrcpy( path+startLen, data.cFileName );
|
||||
locateOneDir( MPPARM(mpool) path, cb, ctxt, nSought, nFoundP );
|
||||
locateOneDir( MPPARM(mpool) path, cb, ctxt, nSought,
|
||||
nFoundP );
|
||||
if ( *nFoundP == nSought ) {
|
||||
break;
|
||||
}
|
||||
|
@ -627,9 +628,7 @@ ceLocateNDicts( MPFORMAL HINSTANCE hInstance, XP_U16 nSought,
|
|||
|
||||
for ( id = IDS_DICTDIRS; ; ++id ) {
|
||||
wchar_t pathBuf[CE_MAX_PATH_LEN+1];
|
||||
int len = LoadString( hInstance, id, pathBuf, sizeof(pathBuf) );
|
||||
XP_LOGF( "%s: LoadString => %d", __FUNCTION__, len );
|
||||
if ( len == 0 ) {
|
||||
if ( 0 >= LoadString( hInstance, id, pathBuf, sizeof(pathBuf) ) ) {
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue