pass the rigth size to LoadString

This commit is contained in:
ehouse 2006-04-22 14:31:43 +00:00
parent 08b20dc431
commit 6439096812

View file

@ -628,7 +628,8 @@ ceLocateNDicts( MPFORMAL HINSTANCE hInstance, XP_U16 nSought,
for ( id = IDS_DICTDIRS; ; ++id ) {
wchar_t pathBuf[CE_MAX_PATH_LEN+1];
if ( 0 >= LoadString( hInstance, id, pathBuf, sizeof(pathBuf) ) ) {
if ( 0 >= LoadString( hInstance, id, pathBuf,
sizeof(pathBuf)/sizeof(pathBuf[0]) ) ) {
break;
}