mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-06 20:45:54 +01:00
More of dict search change: failed to save buffer before checkin
This commit is contained in:
parent
eb7f62308e
commit
bc2a99b474
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 .. */
|
/* skip . and .. */
|
||||||
} else {
|
} else {
|
||||||
lstrcpy( path+startLen, data.cFileName );
|
lstrcpy( path+startLen, data.cFileName );
|
||||||
locateOneDir( MPPARM(mpool) path, cb, ctxt, nSought, nFoundP );
|
locateOneDir( MPPARM(mpool) path, cb, ctxt, nSought,
|
||||||
|
nFoundP );
|
||||||
if ( *nFoundP == nSought ) {
|
if ( *nFoundP == nSought ) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -627,9 +628,7 @@ ceLocateNDicts( MPFORMAL HINSTANCE hInstance, XP_U16 nSought,
|
||||||
|
|
||||||
for ( id = IDS_DICTDIRS; ; ++id ) {
|
for ( id = IDS_DICTDIRS; ; ++id ) {
|
||||||
wchar_t pathBuf[CE_MAX_PATH_LEN+1];
|
wchar_t pathBuf[CE_MAX_PATH_LEN+1];
|
||||||
int len = LoadString( hInstance, id, pathBuf, sizeof(pathBuf) );
|
if ( 0 >= LoadString( hInstance, id, pathBuf, sizeof(pathBuf) ) ) {
|
||||||
XP_LOGF( "%s: LoadString => %d", __FUNCTION__, len );
|
|
||||||
if ( len == 0 ) {
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue