ICU-311 fixed crashing problem

X-SVN-Rev: 1683
This commit is contained in:
Vladimir Weinstein 2000-06-28 23:19:32 +00:00
parent d350a69251
commit 9b404b0904
3 changed files with 3 additions and 3 deletions

View File

@ -107,7 +107,7 @@ static void T_UConverter_fromUnicode_LATIN_1 (UConverter * _this,
args.pSource = &srcTemp;
args.sourceLimit = sourceLimit;
args.flush = flush;
args.offsets = offsets+myTargetIndex;
args.offsets = offsets:offsets+myTargetIndex?0;
args.size = sizeof(args);
FromU_CALLBACK_MACRO(args.converter->fromUContext,

View File

@ -465,7 +465,7 @@ static void T_UConverter_fromUnicode_MBCS (UConverter * _this,
args.pSource = &srcTemp;
args.sourceLimit = sourceLimit;
args.flush = flush;
args.offsets = offsets+myTargetIndex;
args.offsets = (offsets)?offsets+myTargetIndex:0;
args.size = sizeof(args);
/* Needed explicit cast for myTarget on MVS to make compiler happy - JJD */
/* HSYS: to do: more smarts */

View File

@ -470,7 +470,7 @@ void TestConvert()
MIA1 = ucnv_getFromUCallBack(myConverter);
log_verbose("\n---Testing ucnv_setFromUCallBack...\n");
ucnv_setFromUCallBack(myConverter, otherUnicodeAction(MIA1), NULL, oldFromUAction, &oldFromUContext, err);
ucnv_setFromUCallBack(myConverter, otherUnicodeAction(MIA1), NULL, oldFromUAction, &oldFromUContext, &err);
if (U_FAILURE(err))
{ log_err("FAILURE! %s\n", myErrorName(err)); }